public abstract class BaseOpContext extends Object implements OpContext
| Modifier and Type | Field and Description |
|---|---|
protected List<Boolean> |
fastpath_b |
protected List<Double> |
fastpath_d |
protected List<Long> |
fastpath_i |
protected Map<Integer,INDArray> |
fastpath_in |
protected Map<Integer,INDArray> |
fastpath_out |
| Constructor and Description |
|---|
BaseOpContext() |
| Modifier and Type | Method and Description |
|---|---|
List<Boolean> |
getBArguments() |
List<Long> |
getIArguments() |
List<INDArray> |
getInputArrays()
This method returns List of input arrays defined within this context
|
List<INDArray> |
getOutputArrays()
This method returns List of output arrays defined within this context
|
List<Double> |
getTArguments() |
void |
setBArguments(boolean... arguments)
This method sets boolean arguments required for operation
|
void |
setIArguments(long... arguments)
This method sets integer arguments required for operation
|
void |
setInputArray(int index,
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(List<INDArray> arrays)
This method sets provided arrays as input arrays
|
void |
setOutputArray(int index,
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(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, waitcontextPointer, getRngStates, markInplace, setRngStatesclosepublic void setIArguments(long... arguments)
OpContextsetIArguments in interface OpContextpublic List<Long> getIArguments()
getIArguments in interface OpContextpublic void setTArguments(double... arguments)
OpContextsetTArguments in interface OpContextpublic List<Double> getTArguments()
getTArguments in interface OpContextpublic void setBArguments(boolean... arguments)
OpContextsetBArguments in interface OpContextpublic List<Boolean> getBArguments()
getBArguments in interface OpContextpublic void setInputArray(int index,
@NonNull
INDArray array)
OpContextsetInputArray in interface OpContextpublic List<INDArray> getInputArrays()
OpContextgetInputArrays in interface OpContextpublic List<INDArray> getOutputArrays()
OpContextgetOutputArrays in interface OpContextpublic void setOutputArray(int index,
@NonNull
INDArray array)
OpContextsetOutputArray in interface OpContextpublic void setInputArrays(@NonNull
List<INDArray> arrays)
OpContextsetInputArrays in interface OpContextpublic void setOutputArrays(@NonNull
List<INDArray> arrays)
OpContextsetOutputArrays in interface OpContextpublic void setInputArrays(INDArray... arrays)
OpContextsetInputArrays in interface OpContextpublic void setOutputArrays(INDArray... arrays)
OpContextsetOutputArrays in interface OpContextCopyright © 2019. All rights reserved.