-
Notifications
You must be signed in to change notification settings - Fork 825
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
Dev type as module #5349
Dev type as module #5349
Conversation
…eflow into dev_fix_slice_bug
not flow.unittest.env.eager_execution_enabled(), | ||
".numpy() doesn't work in lazy mode", | ||
) | ||
class TestPow(flow.unittest.TestCase): |
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.
名字改一下
".numpy() doesn't work in lazy mode", | ||
) | ||
class TestPow(flow.unittest.TestCase): | ||
def test_pow_forward(test_case): |
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.
这里也是
|
||
def _test_type_as(test_case, shape, device): | ||
np_input = np.random.rand(*shape) | ||
input = flow.tensor(np_input, dtype=flow.float, device=device) |
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.
这里感觉测试不全面,我理解可以写两个dtype的数组来遍历着测试
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.
好的
新增:type_as、long module及test case
api docs:


doc test:
