Skip to content

Commit

Permalink
skip partitioning ops with bool args/outputs (pytorch#3679)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#3679

bool is not currently supported in operators or in shader generation code

Reviewed By: jorgep31415

Differential Revision: D57509811

fbshipit-source-id: 1f9979611993745f056dbb1d1abb25dc8a02fb1a
  • Loading branch information
nathanaelsee authored and facebook-github-bot committed May 20, 2024
1 parent 2b603df commit 91ef7fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backends/vulkan/partitioner/vulkan_partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def node_val_is_compatible(self, node_val: Any) -> bool:
if len(node_val.shape) > 4:
return False

# bool dtype not currently supported
if node_val.dtype == torch.bool:
return False

if isinstance(node_val, (list, tuple)):
for item in node_val:
if not self.node_val_is_compatible(item):
Expand Down

0 comments on commit 91ef7fb

Please sign in to comment.