public class NativeGraphExecutioner extends Object implements GraphExecutioner
GraphExecutioner.Type| Constructor and Description |
|---|
NativeGraphExecutioner() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
convertToFlatBuffers(SameDiff sd,
ExecutorConfiguration configuration)
This method converts given SameDiff instance to FlatBuffers representation
|
INDArray[] |
executeGraph(int id,
SDVariable... variables)
This method executes
|
INDArray[] |
executeGraph(SameDiff sd)
This method executes given graph and returns results
PLEASE NOTE: Default configuration is used
|
INDArray[] |
executeGraph(SameDiff sd,
ExecutorConfiguration configuration)
This method executes given graph and returns results
|
GraphExecutioner.Type |
getExecutionerType()
This method returns Type of this executioner
|
static byte |
getFlatOpType(Op.Type type) |
static long |
getOpNum(String name,
Op.Type type) |
INDArray[] |
importProto(File file)
This method executes TF graph
PLEASE NOTE: This feature is under development yet
|
int |
registerGraph(SameDiff graph)
This method stores given graph for future execution
|
INDArray[] |
reuseGraph(SameDiff graph,
Map<Integer,INDArray> inputs) |
public GraphExecutioner.Type getExecutionerType()
getExecutionerType in interface GraphExecutionerpublic INDArray[] executeGraph(SameDiff sd)
executeGraph in interface GraphExecutionersd - public INDArray[] reuseGraph(SameDiff graph, Map<Integer,INDArray> inputs)
reuseGraph in interface GraphExecutionerpublic ByteBuffer convertToFlatBuffers(SameDiff sd, ExecutorConfiguration configuration)
GraphExecutionerconvertToFlatBuffers in interface GraphExecutionerpublic INDArray[] executeGraph(SameDiff sd, ExecutorConfiguration configuration)
executeGraph in interface GraphExecutionersd - public static byte getFlatOpType(Op.Type type)
public INDArray[] executeGraph(int id, SDVariable... variables)
executeGraph in interface GraphExecutionerid - variables - public int registerGraph(SameDiff graph)
registerGraph in interface GraphExecutionergraph - public INDArray[] importProto(File file)
GraphExecutionerimportProto in interface GraphExecutionerCopyright © 2022. All rights reserved.