Skip to content

Commit

Permalink
Simplify input generation in msr test
Browse files Browse the repository at this point in the history
Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu>
  • Loading branch information
APJansen and scarlehoff committed Nov 28, 2023
1 parent a28da06 commit 2ea4878
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions n3fit/src/n3fit/tests/test_msr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

def apply_layer_to_fixed_input(layer):
np.random.seed(422)
pdf_integrated = np.expand_dims(np.random.normal(size=(1, 14)), -1)
pdf_integrated = op.numpy_to_tensor(pdf_integrated)
pdf_integrated = op.numpy_to_tensor(np.random.normal(size=(1, 14,1)))

photon_integral = np.expand_dims(np.random.normal(size=(1,)), -1)
photon_integral = op.numpy_to_tensor(photon_integral)
photon_integral = op.numpy_to_tensor([np.random.normal(size=(1,1))])

return layer(pdf_integrated, photon_integral)

Expand Down

0 comments on commit 2ea4878

Please sign in to comment.