Skip to content

Commit

Permalink
[xpu] add missing dtypes for data_generate (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianhaodongbd authored Oct 9, 2024
1 parent 09452cb commit a7a6cfc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions paddleapex/apex/utils/data_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
"paddle.float16",
"paddle.half",
"paddle.bfloat16",
"FLOAT64",
"FLOAT32",
"FLOAT16",
"BFLOAT16",
]
REAL_TYPE_PADDLE = {
"FP64": "paddle.float64",
Expand All @@ -54,6 +58,10 @@
"INT16": "paddle.int16",
"INT32": "paddle.int32",
"INT64": "paddle.int64",
"FLOAT64": "paddle.float64",
"FLOAT32": "paddle.float32",
"FLOAT16": "paddle.float16",
"BFLOAT16": "paddle.bfloat16",
}
NUMPY_TYPE = [
"numpy.int8",
Expand Down

0 comments on commit a7a6cfc

Please sign in to comment.