Class Session
Description
This is a runtime which allows you to run computational graphs on different backends
Methods
init (node) => void
Intialize operations for session
node | Operation | operation chain to be used in session |
runOp (op, ctx, output?) => void
Run Operation
op | Operation | operation to run |
ctx | * | context of a run, passing the same context twice in a raw will use cached result |
output? | Tensor | HTMLCanvasElement | if passed, the output is put into it. |
destroy () => void
Destroy all initialized operations, textures and other data connected to this session.