Package deepnetts.tensor
Class Tensor4D
java.lang.Object
deepnetts.tensor.TensorBase
deepnetts.tensor.Tensor4D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
add
(float value, int fourth, int z, int row, int col) final int
cols()
copy()
final void
copy3DSubChannel
(int ch, float[] buff) final int
depth()
int
final float
get
(int ch, int inCh, int row, int col) final int
rows()
final void
set
(float val, int ch, int inCh, int row, int col) void
setValuesFromStringTransposed
(String values) final void
sub
(float val, int fourth, int z, int row, int col) Methods inherited from class deepnetts.tensor.TensorBase
add, add, addInto, apply, apply, clone, copyFrom, copyFrom, copyFromGPU, copyToGPU, createAcceleratorBridge, div, div, div, equals, equals, fill, getAcceleratorBridge, getOrCreateAccBridge, getValues, hashCode, mean, multiply, multiply, multiplyElementWise, numDimensions, numElements, randomize, replace, setValues, setValuesFromString, shape, sqr, sqrt, std, sub, sub, subInplace, subInto, sum, sumAbs, sumSqr, toString, valuesAsString
-
Constructor Details
-
Tensor4D
public Tensor4D(int fourthDim, int depth, int rows, int cols) -
Tensor4D
public Tensor4D(int fourthDim, int depth, int rows, int cols, float[] values) -
Tensor4D
public Tensor4D(float[][][][] vals)
-
-
Method Details
-
get
public final float get(int ch, int inCh, int row, int col) -
set
public final void set(float val, int ch, int inCh, int row, int col) -
add
public final void add(float value, int fourth, int z, int row, int col) -
sub
public final void sub(float val, int fourth, int z, int row, int col) -
copy
- Overrides:
copy
in classTensorBase
-
setValuesFromStringTransposed
- Overrides:
setValuesFromStringTransposed
in classTensorBase
-
cols
public final int cols() -
rows
public final int rows() -
depth
public final int depth() -
fourthDim
public int fourthDim() -
copy3DSubChannel
public final void copy3DSubChannel(int ch, float[] buff)
-