- java.lang.Object
-
- swim.math.TensorDims
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorDims
by(int size)
TensorDims
by(int size, int stride)
boolean
conforms(TensorDims that)
static TensorDims
d1()
static TensorDims
d2()
static TensorDims
d2x2()
static TensorDims
d3()
static TensorDims
d3x3()
static TensorDims
d4()
static TensorDims
d4x4()
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
TensorDims
flattened()
static Form<TensorDims>
form()
int
hashCode()
boolean
isDefined()
boolean
isFullyPacked()
boolean
isPacked()
TensorDims
next()
static TensorDims
of(int size)
static TensorDims
of(int size, int stride)
int
rank()
int
size()
int
stride()
int[]
toSizeArray()
int[]
toSizeArray(int[] sizes)
int[]
toStrideArray()
int[]
toStrideArray(int[] strides)
String
toString()
Value
toValue()
static TensorDims
undefined()
-
-
-
Method Detail
-
isDefined
public boolean isDefined()
-
rank
public int rank()
-
size
public int size()
-
stride
public int stride()
-
next
public TensorDims next()
-
isPacked
public boolean isPacked()
-
isFullyPacked
public boolean isFullyPacked()
-
by
public TensorDims by(int size, int stride)
-
by
public TensorDims by(int size)
-
flattened
public TensorDims flattened()
-
toSizeArray
public int[] toSizeArray(int[] sizes)
-
toSizeArray
public int[] toSizeArray()
-
toStrideArray
public int[] toStrideArray(int[] strides)
-
toStrideArray
public int[] toStrideArray()
-
toValue
public Value toValue()
-
conforms
public boolean conforms(TensorDims that)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
undefined
public static TensorDims undefined()
-
d1
public static TensorDims d1()
-
d2
public static TensorDims d2()
-
d3
public static TensorDims d3()
-
d4
public static TensorDims d4()
-
d2x2
public static TensorDims d2x2()
-
d3x3
public static TensorDims d3x3()
-
d4x4
public static TensorDims d4x4()
-
of
public static TensorDims of(int size, int stride)
-
of
public static TensorDims of(int size)
-
form
@Kind public static Form<TensorDims> form()
-
-