We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d58352 commit a548deaCopy full SHA for a548dea
modelopt/torch/quantization/nn/modules/tensor_quantizer.py
@@ -509,7 +509,7 @@ def validate_attr(
509
):
510
"""Validate attribute."""
511
attr_value = attr_value if attr_value is not None else getattr(self, attr_name, None)
512
- if attr_value is None:
+ if attr_value is None or (isinstance(attr_value, torch.Tensor) and attr_value.is_meta):
513
return True
514
is_valid = torch.all(attr_value >= 0) and not torch.any(torch.isinf(attr_value))
515
if is_valid:
0 commit comments