public abstract class BaseOpContext extends Object implements OpContext
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionMode |
executionMode |
protected List<Boolean> |
fastpath_b |
protected List<DataType> |
fastpath_d |
protected List<Long> |
fastpath_i |
protected Map<Integer,INDArray> |
fastpath_in |
protected Map<Integer,INDArray> |
fastpath_out |
protected List<Double> |
fastpath_t |
| Constructor and Description |
|---|
BaseOpContext() |
| Modifier and Type | Method and Description |
|---|---|
List<Boolean> |
getBArguments() |
List<DataType> |
getDArguments() |
List<Long> |
getIArguments() |
INDArray |
getInputArray(int idx) |
List<INDArray> |
getInputArrays()
This method returns List of input arrays defined within this context
|
INDArray |
getOutputArray(int i) |
List<INDArray> |
getOutputArrays()
This method returns List of output arrays defined within this context
|
List<Double> |
getTArguments() |
int |
numBArguments() |
int |
numDArguments() |
int |
numIArguments() |
int |
numInputArguments() |
int |
numOutputArguments() |
int |
numTArguments() |
void |
purge()
This method removes all in/out arrays from this OpContext
|
void |
setBArguments(boolean... arguments)
This method sets boolean arguments required for operation
|
void |
setDArguments(DataType... arguments)
This method sets data type arguments required for operation
|
void |
setIArguments(long... arguments)
This method sets integer arguments required for operation
|
void |
setInputArray(int index,
@NonNull INDArray array)
This method adds INDArray as input argument for future op call
|
void |
setInputArrays(INDArray... arrays)
This method sets provided arrays as input arrays
|
void |
setInputArrays(@NonNull List<INDArray> arrays)
This method sets provided arrays as input arrays
|
void |
setOutputArray(int index,
@NonNull INDArray array)
This method adds INDArray as output for future op call
|
void |
setOutputArrays(INDArray... arrays)
This method sets provided arrays as output arrays
|
void |
setOutputArrays(@NonNull List<INDArray> arrays)
This method sets provided arrays as output arrays
|
void |
setTArguments(double... arguments)
This method sets floating point arguments required for operation
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowHelpers, contextPointer, getExecutionMode, getRngStates, markInplace, setExecutionMode, setRngStates, shapeFunctionOverridecloseprotected ExecutionMode executionMode
public void setIArguments(long... arguments)
OpContextsetIArguments in interface OpContextpublic List<Long> getIArguments()
getIArguments in interface OpContextpublic int numIArguments()
numIArguments in interface OpContextpublic void setTArguments(double... arguments)
OpContextsetTArguments in interface OpContextpublic List<Double> getTArguments()
getTArguments in interface OpContextpublic int numTArguments()
numTArguments in interface OpContextpublic void setBArguments(boolean... arguments)
OpContextsetBArguments in interface OpContextpublic List<Boolean> getBArguments()
getBArguments in interface OpContextpublic int numBArguments()
numBArguments in interface OpContextpublic void setDArguments(DataType... arguments)
OpContextsetDArguments in interface OpContextpublic List<DataType> getDArguments()
getDArguments in interface OpContextpublic int numDArguments()
numDArguments in interface OpContextpublic void setInputArray(int index,
@NonNull
@NonNull INDArray array)
OpContextsetInputArray in interface OpContextpublic List<INDArray> getInputArrays()
OpContextgetInputArrays in interface OpContextpublic int numInputArguments()
numInputArguments in interface OpContextpublic INDArray getInputArray(int idx)
getInputArray in interface OpContextpublic List<INDArray> getOutputArrays()
OpContextgetOutputArrays in interface OpContextpublic void setOutputArray(int index,
@NonNull
@NonNull INDArray array)
OpContextsetOutputArray in interface OpContextpublic INDArray getOutputArray(int i)
getOutputArray in interface OpContextpublic int numOutputArguments()
numOutputArguments in interface OpContextpublic void setInputArrays(@NonNull
@NonNull List<INDArray> arrays)
OpContextsetInputArrays in interface OpContextpublic void setOutputArrays(@NonNull
@NonNull List<INDArray> arrays)
OpContextsetOutputArrays in interface OpContextpublic void setInputArrays(INDArray... arrays)
OpContextsetInputArrays in interface OpContextpublic void setOutputArrays(INDArray... arrays)
OpContextsetOutputArrays in interface OpContextCopyright © 2021. All rights reserved.