minimum
Classes
MinimumOperator
MinimumOperator(op: AirOperator, model: AirModel, platform: SocPlatform, prefix: str = 'aot', attributes: dict[str, str] = {})
MINIMUM operator.
This operator computes the element-wise minimum of two tensors or tensor with scalar.
Parameters:
-
op
AirOperator
) –The AIR operator to wrap.
-
model
AirModel
) –The AIR model.
-
platform
SocPlatform
) –The target platform for code generation.
-
prefix
str
, default:'aot'
) –Prefix for generated code files. Defaults to "aot".
-
attributes
dict[str, str]
, default:{}
) –Attributes for template values. Defaults to {}.
Functions
compute_values
emit
Generate the source code for the operator.
Parameters:
-
save_path
Path
) –Path to save the generated code.