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 865db7a commit 0931c59Copy full SHA for 0931c59
thunder/core/proxies.py
@@ -2068,10 +2068,10 @@ def type_string(self) -> str:
2068
type_str = base_str
2069
2070
if self._tensors:
2071
- if (tensor_attr_names := getattr(self, "_tensor_attr_names", [])):
2072
- tensor_attr_type_str = ", ".join([
2073
- f"{name}: {t.type_string()}" for name, t in zip(tensor_attr_names, self._tensors)
2074
- ])
+ if tensor_attr_names := getattr(self, "_tensor_attr_names", []):
+ tensor_attr_type_str = ", ".join(
+ [f"{name}: {t.type_string()}" for name, t in zip(tensor_attr_names, self._tensors)]
+ )
2075
else:
2076
tensor_attr_type_str = ", ".join([t.type_string() for t in self._tensors])
2077
type_str = type_str + f" ({tensor_attr_type_str})"
0 commit comments