Getting started
Features
API
License
Convert all floating point torch tensors in dictionary to torch.float32.
Torch tensors with type torch.float32 or other non-float types are kept unchanged.
Nested dictionaries are processed recursively.
tensor_dict (dict) – Dictionary.
is_inplace (bool, default=True) – If True, then input dictionary is updated in-place.
tensor_dict – Dictionary.
dict