public class BasicGraphExecutioner extends Object implements GraphExecutioner
GraphExecutioner.Type| Constructor and Description |
|---|
BasicGraphExecutioner() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
convertToFlatBuffers(SameDiff diff,
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 graph,
ExecutorConfiguration configuration)
This method executes given graph and returns results
|
GraphExecutioner.Type |
getExecutionerType()
This method returns Type of this executioner
|
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 graph, ExecutorConfiguration configuration)
executeGraph in interface GraphExecutionergraph - public ByteBuffer convertToFlatBuffers(SameDiff diff, ExecutorConfiguration configuration)
GraphExecutionerconvertToFlatBuffers in interface GraphExecutionerdiff - public INDArray[] executeGraph(SameDiff sd)
executeGraph in interface GraphExecutionersd - public INDArray[] reuseGraph(SameDiff graph, Map<Integer,INDArray> inputs)
reuseGraph in interface GraphExecutionerpublic 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 © 2021. All rights reserved.