pub struct CustomOperation<'c> { /* private fields */ }
Expand description
A custom
operation. Custom operator wrapper for Tosa.
Hardware implementing TOSA may choose to add additional custom operators that are not expressed in the existing TOSA operations. These operators are not expected to be portable across TOSA implementations. The input and output signatures must be expressed in the corresponding TOSA node.
identifier
is a string that tells the backend which custom operator is being
called.
config
is a string identifier which can help avoid name collisions on the
identifier field.
implementation_attrs
is a string which is a backend and identifier specific
set of attributes to the custom operator.
inputs
is the set of tensor inputs to the custom operator.
`outputs is the list of tensors returned by the operator. The number of operators is backend specific.
Implementations§
source§impl<'c> CustomOperation<'c>
impl<'c> CustomOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> CustomOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CustomOperationBuilder<'c, Unset, Unset, Unset, Unset, Unset>
Creates a builder.