public class ShapeOffsetResolution extends Object implements Serializable
Constructor and Description |
---|
ShapeOffsetResolution(INDArray arr)
Specify the array to use for resolution
|
Modifier and Type | Method and Description |
---|---|
void |
exec(INDArrayIndex... indexes)
Based on the passed in array
compute the shape,offsets, and strides
for the given indexes
|
INDArray |
getArr() |
long |
getOffset() |
int[] |
getOffsets() |
int[] |
getShapes() |
int[] |
getStrides() |
void |
setArr(INDArray arr) |
void |
setOffset(long offset) |
void |
setOffsets(int[] offsets) |
void |
setShapes(int[] shapes) |
void |
setStrides(int[] strides) |
boolean |
tryShortCircuit(INDArrayIndex... indexes) |
public ShapeOffsetResolution(INDArray arr)
arr
- the array to use
for resolutionpublic boolean tryShortCircuit(INDArrayIndex... indexes)
public void exec(INDArrayIndex... indexes)
indexes
- the indexes
to compute this based onpublic INDArray getArr()
public void setArr(INDArray arr)
public int[] getOffsets()
public void setOffsets(int[] offsets)
public int[] getShapes()
public void setShapes(int[] shapes)
public int[] getStrides()
public void setStrides(int[] strides)
public long getOffset()
public void setOffset(long offset)
Copyright © 2016. All Rights Reserved.