Getting started
Features
API
License
Convert all int, float and bool in dictionary to torch.Tensor.
Torch default types are assumed for each variable input type.
Torch tensors and non-listed types are kept unchanged.
Nested dictionaries are processed recursively.
data_dict (dict) – Dictionary.
is_inplace (bool, default=True) – If True, then input dictionary is updated in-place.
data_dict – Dictionary.
dict