Skip to content

Commit

Permalink
fixed UT for pytorch 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
civodlu committed Jan 29, 2020
1 parent 7aecf07 commit 6ee062d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_callback_learning_rate_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


def create_simple_regression(factor, nb_samples=100):
i = np.random.randn(nb_samples, 1)
o = i * factor
i = np.random.randn(nb_samples, 1).astype(np.float32)
o = i * np.float32(factor)

datasets = collections.OrderedDict()
sampler = trw.train.SamplerRandom(batch_size=256)
Expand Down

0 comments on commit 6ee062d

Please sign in to comment.