Class TensorManipulations
java.lang.Object
io.github.kirstenali.deepj.tensor.TensorStorageAccess
io.github.kirstenali.deepj.tensor.TensorManipulations
- Direct Known Subclasses:
Tensor
Shape transformations retain one Tensor system and participate in first-order autograd.
-
Method Summary
Modifier and TypeMethodDescriptionfinal Tensorfinal TensorIndependent value assignment with an explicit cast to this tensor's dtype; shapes must match.final Tensorexpand(int... shape) final TensorindexAddInPlace(int axis, int[] indices, Tensor updates) final TensorindexSelect(int axis, int... indices) final TensormaxAxes(int... axes) final Tensormaximum(int axis, boolean keep) Tied maxima share their gradient equally.final Tensormean(int axis, boolean keep) final TensormeanAxes(int... axes) static Tensorfinal Tensorpermute(int... axes) static Tensorbooleanfinal Tensorreshape(int... shape) final Tensorselect(int axis, int index) final Tensorslice(int axis, int start, int stop) final Tensorslice(int axis, int start, int stop, int step) final Tensorsoftmax(int axis) final Tensorsum(int axis, boolean keepDimensions) final TensorsumAxes(int... axes) protected abstract Tensortensor()final Tensorfinal Tensortranspose(int first, int second) final Tensorunsqueeze(int axis) final Tensorvariance(int axis, boolean keep) Population variance; use the correction overload for a different denominator.final Tensorvariance(int axis, boolean keep, int correction) final TensorvarianceAxes(int[] axes, boolean keep, int correction) final Tensorview(int... shape) static TensorMethods inherited from class io.github.kirstenali.deepj.tensor.TensorStorageAccess
coversStorage, dtype, get, get, getGpuTag, gradientState, hasHostStorage, hasSameShape, hasShape, isContiguous, materialize, matrixCols, matrixRows, numel, rank, rawData, releaseDeviceBufferRetention, retainsDeviceBuffer, set, setAt, setGpuTag, shape, size, storageBytes, storageOffset, strides, toFloatArray
-
Method Details
-
zeros
-
ones
-
random
-
tensor
-
requiresGrad
public boolean requiresGrad() -
view
-
unsqueeze
-
reshape
-
permute
-
transpose
-
select
-
expand
-
contiguous
-
to
-
copyFrom
Independent value assignment with an explicit cast to this tensor's dtype; shapes must match. -
slice
-
slice
-
sum
-
sumAxes
-
mean
-
meanAxes
-
variance
-
variance
Population variance; use the correction overload for a different denominator. -
varianceAxes
-
maximum
Tied maxima share their gradient equally. -
maxAxes
-
softmax
-
indexSelect
-
indexAddInPlace
-