fuse
Fuse
¶
Bases: NumpyOp
Run a sequence of NumpyOps as a single Op.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ops |
Union[NumpyOp, List[NumpyOp]]
|
A sequence of NumpyOps to run. They must all share the same mode. It also doesn't support scheduled ops at the moment, though the Fuse itself may be scheduled. |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If |
Source code in fastestimator\fastestimator\op\numpyop\meta\fuse.py
set_rua_level
¶
Set the augmentation intensity based on the magnitude_coef.
This method is specifically designed to be invoked by the RUA Op.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
magnitude_coef |
float
|
The desired augmentation intensity (range [0-1]). |
required |
Raises:
Type | Description |
---|---|
AttributeError
|
If ops don't have a 'set_rua_level' method. |