returnn.tensor.utils
#
Some helper utils.
- returnn.tensor.utils.tensor_dict_fill_random_numpy_(tensor_dict: TensorDict, *, rnd: int | RandomState = 42, dyn_dim_max_sizes: Dict[Dim, int] | None = None, dyn_dim_min_sizes: Dict[Dim, int] | None = None)[source]#
Random fill with NumPy arrays.
- Parameters:
tensor_dict –
rnd –
dyn_dim_max_sizes – you can specify max sizes for dim tags with dynamic sizes. The fill random code makes sure that there is at least one entry where we reach the max size, so that the dim value will be the max size.
dyn_dim_min_sizes –