Skip to content

Commit

Permalink
use get_const_proxy to construct const op
Browse files Browse the repository at this point in the history
  • Loading branch information
tangzhiyi11 committed Jan 17, 2024
1 parent fb2cfc7 commit daccc34
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 114 deletions.
2 changes: 1 addition & 1 deletion dicp/dicp/vendor/AscendGraph/codegen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_ascend_dtype(dtype: torch.dtype) -> str:
return "BOOL"
elif dtype == torch.int64:
return "INT64"
elif dtype == torch.float32:
elif dtype in [torch.float32, torch.float]:
return "FLOAT"
elif dtype == torch.float16:
return "FLOAT16"
Expand Down
Loading

0 comments on commit daccc34

Please sign in to comment.