Package deepboof.misc
Class TensorFactory<T extends Tensor>
java.lang.Object
deepboof.misc.TensorFactory<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(int... shape) Creates a random tensor with the specified shape and values from -1 to 1
-
Constructor Details
-
TensorFactory
-
-
Method Details
-
create
-
randomM
Creates a random tensor with the specified shape and values from -1 to 1- Parameters:
rand- Random number generatorsubTensor- Should it be a sub-tensor or not?minibatch- Number of mini-batchesshape- Shape of the tensor, without minibatch- Returns:
- The random tensor
-
random
-
random
-
getTensorType
-