Package org.nd4j.ir
Class OpDescriptorHolder
- java.lang.Object
-
- org.nd4j.ir.OpDescriptorHolder
-
public class OpDescriptorHolder extends Object
A utility class for accessing the nd4j op descriptors. May override default definition ofnd4jFileNameTextDefaultwith the system propertynd4jFileSpecifierProperty- Author:
- Adam Gibson
-
-
Field Summary
Fields Modifier and Type Field Description static OpNamespace.OpDescriptorListINSTANCEstatic Stringnd4jFileNameTextDefaultstatic Stringnd4jFileSpecifierProperty
-
Constructor Summary
Constructors Constructor Description OpDescriptorHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpNamespace.OpDescriptordescriptorForOpName(String name)Return theOpNamespace.OpDescriptorfor a given op namestatic OpNamespace.OpDescriptorListnd4jOpList()Get the nd4j op listOpNamespace.OpDescriptorListfor serialization.static OpNamespace.OpDescriptorListopList()Returns an singleton of thend4jOpList()result, useful for preventing repeated I/O.
-
-
-
Field Detail
-
nd4jFileNameTextDefault
public static String nd4jFileNameTextDefault
-
nd4jFileSpecifierProperty
public static String nd4jFileSpecifierProperty
-
INSTANCE
public static OpNamespace.OpDescriptorList INSTANCE
-
-
Method Detail
-
descriptorForOpName
public static OpNamespace.OpDescriptor descriptorForOpName(String name)
Return theOpNamespace.OpDescriptorfor a given op name- Parameters:
name- the name of the op to get the descriptor for- Returns:
- the desired op descriptor or null if it does not exist
-
opList
public static OpNamespace.OpDescriptorList opList()
Returns an singleton of thend4jOpList()result, useful for preventing repeated I/O.- Returns:
-
nd4jOpList
public static OpNamespace.OpDescriptorList nd4jOpList() throws IOException
Get the nd4j op listOpNamespace.OpDescriptorListfor serialization. Useful for saving and loadingDynamicCustomOp- Returns:
- the static list of descriptors from the nd4j classpath.
- Throws:
IOException
-
-