Class CustomOp.Builder
java.lang.Object
ai.beestream.jitnn.CustomOp.Builder
- Enclosing class:
CustomOp
-
Method Summary
Modifier and TypeMethodDescriptionbackward(CustomOp.Backward backward) The gradient, written with other operators (optional).build()The operator, registered under its name.The inputs' element types, in order (null accepts any type).launch(CustomOp.Launcher launcher) The device tasks: called once per plan, with the arrays bound to the node's tensors.output(CustomOp.OutputShape shape, DType dtype) Adds an output of the given shape and element type.reference(CustomOp.Reference reference) The host implementation, used by the reference backend and by tests (optional).
-
Method Details
-
inputs
The inputs' element types, in order (null accepts any type). -
output
Adds an output of the given shape and element type. -
launch
The device tasks: called once per plan, with the arrays bound to the node's tensors. -
reference
The host implementation, used by the reference backend and by tests (optional). -
backward
The gradient, written with other operators (optional). -
build
The operator, registered under its name. Inputs, at least one output and the device tasks must have been declared.
-