-
Notifications
You must be signed in to change notification settings - Fork 5.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
Python unitest "test_network_with_dtype" keeps failing. #10604
Comments
Hi, I don't think this has been fixed. In CI and local dev, we can still see this test failure.
|
When running "test_all_ops", the "test_network_with_dtype" keeps failing. The error message as follows:
ERROR: test_cpu (test_network_with_dtype.TestNetWithDtype)
Traceback (most recent call last):
File "test_network_with_dtype.py", line 58, in test_cpu
self.set_network()
File "test_network_with_dtype.py", line 30, in set_network
self.x = fluid.layers.data(name='x', shape=[13], dtype=self.dtype)
File "/paddle/build/python/paddle/fluid/layers/io.py", line 82, in data
is_data=True)
File "/paddle/build/python/paddle/fluid/layer_helper.py", line 344, in create_global_variable
*args, persistable=persistable, **kwargs)
File "/paddle/build/python/paddle/fluid/framework.py", line 763, in create_var
var = Variable(block=self, *args, **kwargs)
File "/paddle/build/python/paddle/fluid/framework.py", line 195, in init
"matched.".format(self.name, old_shape, shape))
ValueError: Variable x has been created before. the previous shape is (-1L, 3L); the new shape is (-1, 13). They are not matched.
======================================================================
ERROR: test_gpu (test_network_with_dtype.TestNetWithDtype)
Traceback (most recent call last):
File "test_network_with_dtype.py", line 65, in test_gpu
self.set_network()
File "test_network_with_dtype.py", line 30, in set_network
self.x = fluid.layers.data(name='x', shape=[13], dtype=self.dtype)
File "/paddle/build/python/paddle/fluid/layers/io.py", line 82, in data
is_data=True)
File "/paddle/build/python/paddle/fluid/layer_helper.py", line 344, in create_global_variable
*args, persistable=persistable, **kwargs)
File "/paddle/build/python/paddle/fluid/framework.py", line 763, in create_var
var = Variable(block=self, *args, **kwargs)
File "/paddle/build/python/paddle/fluid/framework.py", line 195, in init
"matched.".format(self.name, old_shape, shape))
ValueError: Variable x has been created before. the previous shape is (-1L, 3L); the new shape is (-1, 13). They are not matched.
The text was updated successfully, but these errors were encountered: