dense_tensor

# Import statement

from hottbox.utils.generation import dense_tensor
dense_tensor(shape, distr='uniform', distr_type=0, fxdind=None)[source]

Generates a dense tensor of any dimension and fills it accordingly

Parameters
shapetuple

Specifies the dimensions of the tensor

distrstr, optional

Specifies the random generation using a class of the numpy.random module

distr_typeint, optional

Number of indices to not fix. 0 will be applied globally, 1 will apply to fibers, 2 to slices, etc.

Returns
Tensor

Generated tensor according to the parameters specified