Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 5e01ba5

Browse files
Kunming Hofacebook-github-bot
authored andcommitted
bfloa16 support in FXIRUtils
Differential Revision: D53552923 fbshipit-source-id: 64328ec43c2a29f005bee031e649a9ca402b7b13
1 parent 5e913bd commit 5e01ba5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Graph/FXIRUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const std::unordered_map<std::string, ElemKind> stringToElemKind = {
3333
// 16-bit float type
3434
{"torch.float16", ElemKind::Float16Ty},
3535
{"torch.half", ElemKind::Float16Ty},
36+
{"torch.bfloat16", ElemKind::BFloat16Ty},
3637
// 64-bit int type
3738
{"torch.int64", ElemKind::Int64ITy},
3839
// 64-bit int type

0 commit comments

Comments
 (0)