maximum
Classes
MaximumOperator
MaximumOperator(ident: int, op: OperatorT, model: ModelT, subgraph: SubGraphT, prefix: str = 'aot', attributes: dict[str, str] = {})
MAXIMUM operator.
This operator computes the element-wise maximum of two tensors or tensor with scalar.
Parameters:
-
ident
int
) –Operator identifier.
-
op
OperatorT
) –Operator object from LiteRT model.
-
model
ModelT
) –LiteRT model object.
-
subgraph
SubGraphT
) –Subgraph object from LiteRT model.
-
prefix
str
, default:'aot'
) –Prefix for generated files. Defaults to "aot".
-
attributes
dict[str, str]
, default:{}
) –Attributes for template values. Defaults to {}.
Attributes
Functions
compute_values
generate_source_code
Generate the source code for the operator.
Parameters:
-
save_path
Path
) –Path to save the generated code.