Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
struct LayoutTraitScale : LayoutTraitDefault<fp8_e8m0_t, Std::Int<2 / sizeof(fp8_e8m0_t)>> {}; 中2的含义不清晰
NA
可以使代码的实际含义,表达更加清晰明确
用MX_SCALE_K0这种定义的有明确含义的常量代替2, struct LayoutTraitScale : LayoutTraitDefault<fp8_e8m0_t, Std::Int<MX_SCALE_K0 / sizeof(fp8_e8m0_t)>> {};
/assign
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Backgroud(背景信息)
struct LayoutTraitScale : LayoutTraitDefault<fp8_e8m0_t, Std::Int<2 / sizeof(fp8_e8m0_t)>> {}; 中2的含义不清晰
Origin(信息来源)
NA
Benefit / Necessity (价值/作用)
可以使代码的实际含义,表达更加清晰明确
Design(设计方案)
用MX_SCALE_K0这种定义的有明确含义的常量代替2, struct LayoutTraitScale : LayoutTraitDefault<fp8_e8m0_t, Std::Int<MX_SCALE_K0 / sizeof(fp8_e8m0_t)>> {};