Skip to content

Commit

Permalink
support custom svd (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
strint authored Jan 27, 2024
1 parent f8484d1 commit 842c480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onediff/infer_compiler/transform/builtin_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __getattribute__(self, attribute):
):
return flow.Generator()
elif (
isinstance(self._oflow_proxy_submod, (torch.nn.Conv2d, torch.nn.Conv3d))
isinstance(self._oflow_proxy_submod, (torch.nn.Conv1d, torch.nn.Conv2d, torch.nn.Conv3d))
and attribute == "channel_pos"
):
return "channels_first"
Expand Down

0 comments on commit 842c480

Please sign in to comment.