We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TensorInfo.dtype
1 parent cff72fb commit 91bf06fCopy full SHA for 91bf06f
tensorflow_datasets/core/features/feature.py
@@ -122,7 +122,7 @@ def copy_from(cls, tensor_info: TensorInfo) -> TensorInfo:
122
"""Copy constructor."""
123
return cls(
124
shape=tensor_info.shape,
125
- dtype=tensor_info.dtype,
+ dtype=tensor_info.np_dtype,
126
default_value=tensor_info.default_value,
127
sequence_rank=tensor_info.sequence_rank,
128
dataset_lvl=tensor_info.dataset_lvl,
0 commit comments