Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Using const instead of literals
Browse files Browse the repository at this point in the history
  • Loading branch information
connorgoggins committed Feb 25, 2020
1 parent c97518c commit 65f7081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/nightly/test_large_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def check_embedding():
assert out.shape[0] == LARGE_TENSOR_SHAPE
assert out.shape[1] == 1
def check_rnn():
data = nd.random_normal(shape=(2**28, 4, 4))
data = nd.random_normal(shape=(LARGE_TENSOR_SHAPE/16, 4, 4))
parameters = nd.random_normal(shape=(7,))
state = nd.random_normal(shape=(1, 4, 1))
mode = 'rnn_relu'
Expand All @@ -490,7 +490,7 @@ def check_rnn():
out = nd.RNN(data=data, parameters=parameters, state=state, mode=mode,
state_size=state_size, num_layers=num_layers)

assert out.shape[0] == 268435456
assert out.shape[0] == LARGE_TENSOR_SHAPE/16
assert out.shape[1] == 4
assert out.shape[2] == 1

Expand Down

0 comments on commit 65f7081

Please sign in to comment.