Skip to content

Commit

Permalink
Remove usage of deprecated TensorInfo.dtype call.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 521972189
  • Loading branch information
abhijitkundu authored and The TensorFlow Datasets Authors committed Apr 5, 2023
1 parent cff72fb commit 91bf06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_datasets/core/features/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def copy_from(cls, tensor_info: TensorInfo) -> TensorInfo:
"""Copy constructor."""
return cls(
shape=tensor_info.shape,
dtype=tensor_info.dtype,
dtype=tensor_info.np_dtype,
default_value=tensor_info.default_value,
sequence_rank=tensor_info.sequence_rank,
dataset_lvl=tensor_info.dataset_lvl,
Expand Down

0 comments on commit 91bf06f

Please sign in to comment.