Skip to content
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

[Change] 不再兼容旧格式示例代码 #56573

Merged
merged 10 commits into from
Aug 25, 2023
4 changes: 4 additions & 0 deletions python/paddle/tensor/creation.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看起来已经没什么问题了,相关测试修改要恢复么

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

# TODO: define functions to get create a tensor

# TODO: just for test

import math
import re
import warnings
Expand Down Expand Up @@ -1199,6 +1201,7 @@ def _check_attr(attr, message):

def full(shape, fill_value, dtype=None, name=None):
"""
TODO(megemini): just for test

Return a Tensor with the ``fill_value`` which size is same as ``shape``.

Expand Down Expand Up @@ -1248,6 +1251,7 @@ def full(shape, fill_value, dtype=None, name=None):
# [2. 2.]
# [2. 2.]]
"""
# TODO: just for test

if dtype is None:
dtype = 'float32'
Expand Down
Loading