Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class Float8Tensor(TorchAOBaseTensor):
"act_quant_kwargs",
"kernel_preference",
"dtype",
"test_only_new_attr",
]

def __new__(
Expand All @@ -110,6 +111,7 @@ def __new__(
act_quant_kwargs: Optional[QuantizeTensorToFloat8Kwargs] = None,
kernel_preference: KernelPreference = KernelPreference.AUTO,
dtype: Optional[torch.dtype] = None,
test_only_new_attr: Optional[int] = None,
):
shape = qdata.shape
kwargs = {}
Expand All @@ -127,6 +129,7 @@ def __init__(
act_quant_kwargs: Optional[QuantizeTensorToFloat8Kwargs] = None,
kernel_preference: KernelPreference = KernelPreference.AUTO,
dtype: Optional[torch.dtype] = None,
test_only_new_attr: Optional[int] = None,
):
super().__init__()
self.qdata = qdata
Expand All @@ -135,6 +138,7 @@ def __init__(
self.mm_config = mm_config
self.act_quant_kwargs = act_quant_kwargs
self.kernel_preference = kernel_preference
self.test_only_new_attr = test_only_new_attr

def __repr__(self):
return (
Expand Down
Loading