@@ -3955,7 +3955,7 @@ class TestLegacy:
3955
3955
def test_one_hot (self ):
3956
3956
with pytest .warns (
3957
3957
DeprecationWarning ,
3958
- match = "The OneHotDiscreteTensorSpec has been deprecated and will be removed in v0.7 . Please use OneHot instead." ,
3958
+ match = "The OneHotDiscreteTensorSpec has been deprecated and will be removed in v0.8 . Please use OneHot instead." ,
3959
3959
):
3960
3960
one_hot = OneHotDiscreteTensorSpec (n = 4 )
3961
3961
assert isinstance (one_hot , OneHotDiscreteTensorSpec )
@@ -3969,7 +3969,7 @@ def test_one_hot(self):
3969
3969
def test_discrete (self ):
3970
3970
with pytest .warns (
3971
3971
DeprecationWarning ,
3972
- match = "The DiscreteTensorSpec has been deprecated and will be removed in v0.7 . Please use Categorical instead." ,
3972
+ match = "The DiscreteTensorSpec has been deprecated and will be removed in v0.8 . Please use Categorical instead." ,
3973
3973
):
3974
3974
discrete = DiscreteTensorSpec (n = 4 )
3975
3975
assert isinstance (discrete , DiscreteTensorSpec )
@@ -3996,7 +3996,7 @@ def test_unbounded(self):
3996
3996
3997
3997
with pytest .warns (
3998
3998
DeprecationWarning ,
3999
- match = "The UnboundedContinuousTensorSpec has been deprecated and will be removed in v0.7 . Please use Unbounded instead." ,
3999
+ match = "The UnboundedContinuousTensorSpec has been deprecated and will be removed in v0.8 . Please use Unbounded instead." ,
4000
4000
):
4001
4001
unbounded_continuous = UnboundedContinuousTensorSpec ()
4002
4002
assert isinstance (unbounded_continuous , Unbounded )
@@ -4009,7 +4009,7 @@ def test_unbounded(self):
4009
4009
4010
4010
with pytest .warns (
4011
4011
DeprecationWarning ,
4012
- match = "The UnboundedDiscreteTensorSpec has been deprecated and will be removed in v0.7 . Please use Unbounded instead." ,
4012
+ match = "The UnboundedDiscreteTensorSpec has been deprecated and will be removed in v0.8 . Please use Unbounded instead." ,
4013
4013
):
4014
4014
unbounded_discrete = UnboundedDiscreteTensorSpec ()
4015
4015
assert isinstance (unbounded_discrete , Unbounded )
@@ -4040,7 +4040,7 @@ def test_unbounded(self):
4040
4040
def test_multi_one_hot (self ):
4041
4041
with pytest .warns (
4042
4042
DeprecationWarning ,
4043
- match = "The MultiOneHotDiscreteTensorSpec has been deprecated and will be removed in v0.7 . Please use MultiOneHot instead." ,
4043
+ match = "The MultiOneHotDiscreteTensorSpec has been deprecated and will be removed in v0.8 . Please use MultiOneHot instead." ,
4044
4044
):
4045
4045
one_hot = MultiOneHotDiscreteTensorSpec (nvec = [4 , 3 ])
4046
4046
assert isinstance (one_hot , MultiOneHotDiscreteTensorSpec )
@@ -4054,7 +4054,7 @@ def test_multi_one_hot(self):
4054
4054
def test_multi_categorical (self ):
4055
4055
with pytest .warns (
4056
4056
DeprecationWarning ,
4057
- match = "The MultiDiscreteTensorSpec has been deprecated and will be removed in v0.7 . Please use MultiCategorical instead." ,
4057
+ match = "The MultiDiscreteTensorSpec has been deprecated and will be removed in v0.8 . Please use MultiCategorical instead." ,
4058
4058
):
4059
4059
categorical = MultiDiscreteTensorSpec (nvec = [4 , 3 ])
4060
4060
assert isinstance (categorical , MultiDiscreteTensorSpec )
@@ -4068,7 +4068,7 @@ def test_multi_categorical(self):
4068
4068
def test_binary (self ):
4069
4069
with pytest .warns (
4070
4070
DeprecationWarning ,
4071
- match = "The BinaryDiscreteTensorSpec has been deprecated and will be removed in v0.7 . Please use Binary instead." ,
4071
+ match = "The BinaryDiscreteTensorSpec has been deprecated and will be removed in v0.8 . Please use Binary instead." ,
4072
4072
):
4073
4073
binary = BinaryDiscreteTensorSpec (5 )
4074
4074
assert isinstance (binary , BinaryDiscreteTensorSpec )
@@ -4082,7 +4082,7 @@ def test_binary(self):
4082
4082
def test_bounded (self ):
4083
4083
with pytest .warns (
4084
4084
DeprecationWarning ,
4085
- match = "The BoundedTensorSpec has been deprecated and will be removed in v0.7 . Please use Bounded instead." ,
4085
+ match = "The BoundedTensorSpec has been deprecated and will be removed in v0.8 . Please use Bounded instead." ,
4086
4086
):
4087
4087
bounded = BoundedTensorSpec (- 2 , 2 , shape = ())
4088
4088
assert isinstance (bounded , BoundedTensorSpec )
@@ -4097,7 +4097,7 @@ def test_composite(self):
4097
4097
with (
4098
4098
pytest .warns (
4099
4099
DeprecationWarning ,
4100
- match = "The CompositeSpec has been deprecated and will be removed in v0.7 . Please use Composite instead." ,
4100
+ match = "The CompositeSpec has been deprecated and will be removed in v0.8 . Please use Composite instead." ,
4101
4101
)
4102
4102
):
4103
4103
composite = CompositeSpec ()
@@ -4113,7 +4113,7 @@ def test_non_tensor(self):
4113
4113
with (
4114
4114
pytest .warns (
4115
4115
DeprecationWarning ,
4116
- match = "The NonTensorSpec has been deprecated and will be removed in v0.7 . Please use NonTensor instead." ,
4116
+ match = "The NonTensorSpec has been deprecated and will be removed in v0.8 . Please use NonTensor instead." ,
4117
4117
)
4118
4118
):
4119
4119
non_tensor = NonTensorSpec ()
0 commit comments