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 ofnd4jFileNameTextDefault
with the system propertynd4jFileSpecifierProperty
- Author:
- Adam Gibson
-
-
Field Summary
Fields Modifier and Type Field Description static OpNamespace.OpDescriptorList
INSTANCE
static String
nd4jFileNameTextDefault
static String
nd4jFileSpecifierProperty
-
Constructor Summary
Constructors Constructor Description OpDescriptorHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpNamespace.OpDescriptor
descriptorForOpName(String name)
Return theOpNamespace.OpDescriptor
for a given op namestatic OpNamespace.OpDescriptorList
nd4jOpList()
Get the nd4j op listOpNamespace.OpDescriptorList
for serialization.static OpNamespace.OpDescriptorList
opList()
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.OpDescriptor
for 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.OpDescriptorList
for serialization. Useful for saving and loadingDynamicCustomOp
- Returns:
- the static list of descriptors from the nd4j classpath.
- Throws:
IOException
-
-