We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6335e6a commit c26799bCopy full SHA for c26799b
python/paddle/fluid/tests/unittests/test_nn_grad.py
@@ -161,10 +161,10 @@ def func(self, place):
161
y_shapes = [[2], [3, 2], [2, 4, 5], [2, 3, 3, 5], [4, 3]]
162
transpose_xs = [False, True, True, False, False]
163
transpose_ys = [False, True, False, True, False]
164
- dtypes = [np.float64, np.float64, np.float32, np.float32, np.float64]
165
- typenames = ["float64", "float64", "float32", "float32", "float64"]
166
- for i, (x_shape, y_shape, transpose_x, transpose_y, dtype, typename) \
167
- in enumerate(zip(x_shapes, y_shapes, transpose_xs, transpose_ys, dtypes, typenames)):
+ dtype = np.float64
+ typename = "float64"
+ for i, (x_shape, y_shape, transpose_x, transpose_y) \
+ in enumerate(zip(x_shapes, y_shapes, transpose_xs, transpose_ys)):
168
x = layers.create_parameter(
169
dtype=typename, shape=x_shape, name='x{}'.format(i))
170
y = layers.create_parameter(
0 commit comments