Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
YibinLiu666 committed Nov 7, 2023
1 parent dbd9d7f commit bf37ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/nn/layer/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ def astype(self, dtype=None):
Parameters:
dtype(str|paddle.dtype|numpy.dtype): target data type of layer.
If set str, it can be "bool", "float16", "float32", "float64",
If set str, it can be "bool", "bfloat16", "float16", "float32", "float64",
"int8", "int16", "int32", "int64", "uint8", "complex64", "complex128".
Default: None
Expand Down Expand Up @@ -995,7 +995,7 @@ def astype(self, dtype=None):
return self
else:
raise ValueError(
"dtype value error, must be 'bfloat16', 'float16', 'float32', 'float64', 'int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'complex64', 'complex128', 'bool', or paddle.dtype, numpy.dtype, but recieve "
"dtype value error, must be 'bfloat16', 'float16', 'float32', 'float64', 'int8', 'int16', 'int32', 'int64', 'uint8', 'complex64', 'complex128', 'bool', or paddle.dtype, numpy.dtype, but recieve "
+ str(dtype)
)

Expand Down

0 comments on commit bf37ce2

Please sign in to comment.