Skip to content

Commit e6ceb95

Browse files
crcrparmsaroufim
andauthored
add "_gemm_input_role" to dunder slots (#984)
* add "_gemm_input_role" to dunder slots Signed-off-by: Masaki Kozuki <[email protected]> * lint --------- Signed-off-by: Masaki Kozuki <[email protected]> Co-authored-by: Mark Saroufim <[email protected]>
1 parent c10f9c9 commit e6ceb95

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

torchao/float8/float8_tensor.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,16 @@ class Float8Tensor(torch.Tensor):
293293
_scale: torch.Tensor
294294
_orig_dtype: torch.dtype
295295
_linear_mm_config: LinearMMConfig
296+
_gemm_input_role: GemmInputRole
296297
_axiswise_dim: Optional[int]
297-
__slots__ = ["_data", "_scale", "_orig_dtype", "_linear_mm_config"]
298+
__slots__ = [
299+
"_data",
300+
"_scale",
301+
"_orig_dtype",
302+
"_linear_mm_config",
303+
"_gemm_input_role",
304+
"_axiswise_dim",
305+
]
298306

299307
def __new__(
300308
cls,

0 commit comments

Comments
 (0)