Class ConvertF32ToF16Pass

Inheritance Relationships

Base Type

  • public Pass

Class Documentation

class mgb::gopt::ConvertF32ToF16Pass : public Pass

replace the dtype of opr from float32 to float16.

Public Functions

const char *name() const override
ConvertF32ToF16Pass &set_var_replace_check_flag(VarReplaceCheckFlag flag)
void apply(OptState &opt) const override

Public Static Functions

std::unique_ptr<ConvertF32ToF16Pass> make(bool use_f32_comp)