Skip to content

Commit 91bf06f

Browse files
abhijitkunduThe TensorFlow Datasets Authors
authored andcommitted
Remove usage of deprecated TensorInfo.dtype call.
PiperOrigin-RevId: 521972189
1 parent cff72fb commit 91bf06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_datasets/core/features/feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def copy_from(cls, tensor_info: TensorInfo) -> TensorInfo:
122122
"""Copy constructor."""
123123
return cls(
124124
shape=tensor_info.shape,
125-
dtype=tensor_info.dtype,
125+
dtype=tensor_info.np_dtype,
126126
default_value=tensor_info.default_value,
127127
sequence_rank=tensor_info.sequence_rank,
128128
dataset_lvl=tensor_info.dataset_lvl,

0 commit comments

Comments
 (0)