-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataType] Add bfloat16 #5601
Merged
Merged
[DataType] Add bfloat16 #5601
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
6ca0e30
add bf16
Menooker 3fba684
add bf16 in DataType (py)
Menooker 48e7e94
ndarray of bf16
Menooker 17ef57b
do not cast back for compare op
Menooker 96f3019
const gen
Menooker 4aeff41
more precise
Menooker c551a3d
update test
Menooker 0510af9
enable vectorization
Menooker 3c5c0f4
correct vectorize
Menooker c978b9e
linter changes
Menooker ef6f410
linter
Menooker 92d014a
linter
Menooker e23f33c
linter
Menooker a245d41
Update bf16_legalize.cc
Menooker 17c7084
Update bf16_legalize.cc
Menooker d51bf9b
Update bf16_legalize.cc
Menooker cbb1e5b
Update transform.py
Menooker 680ecce
fix
Menooker b4b9d42
Update test_target_codegen_llvm.py
Menooker a899ef7
Update test_target_codegen_llvm.py
Menooker 3523f00
Update transform.py
Menooker bac7247
bf16 => bfloat16
Menooker 7224acf
fix linter problem
Menooker b36f5f4
TIR legalize
Menooker 92968d0
pass test
Menooker 177f99a
linter
Menooker 27c0ab2
linter
Menooker 3dd2a71
linter
Menooker c546376
fix AttrStmtNode
Menooker 01906c5
msvc compile
Menooker 7d99adb
Merge branch 'master' into bf16
liangfu 817f302
comments and notes
Menooker ae67413
linter
Menooker bf1b747
Code style, use kDLBfloat
Menooker b1c1951
format
Menooker 86bcc16
update dlpack
Menooker 7612f9d
change back nullptr typecode
Menooker 02990b1
Merge branch 'master' of https://github.com/apache/incubator-tvm into…
Menooker 1b85a00
remove python runtime type for bf16
Menooker c0cb1ef
fix code style of RoundToNearestEven
Menooker b8b5b4a
Merge branch 'master' of https://github.com/apache/incubator-tvm into…
Menooker a6341cb
merge newest master
Menooker 656e3e4
format
Menooker 25c811c
pylint on test
Menooker af5438a
Merge branch 'master' of https://github.com/apache/incubator-tvm into…
Menooker 7a72ea9
make it run on newest master
Menooker 318ddc9
type code changes etc.
Menooker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is understandable that right now we only support bf16, but my concern is that "should we put the check here"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand your concern. Any suggestions for the location where we put this check? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tqchen This is just a nitpick. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let us leave it as it is for now, we can come back to it later