Skip to content

Commit

Permalink
init arrays in numpy style
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery Chernov committed Jan 27, 2023
1 parent 6314fa3 commit 0189c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/frontend/onnx/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -6792,12 +6792,12 @@ def get_bernoulli_model(shape, in_dtype="float32", out_dtype="int32", seed=None)

# Binomial test input with 0.5 values
val_num = 10000
arr = [0.5] * val_num
arr = np.ones([val_num]) * 0.5
inputs = np.array(arr).astype("float32")
verify_bernoulli(inputs)

# Binomial test input with 0.1 values
arr = [0.1] * val_num
arr = np.ones([val_num]) * 0.1
inputs = np.array(arr).astype("float32")
verify_bernoulli(inputs)

Expand Down

0 comments on commit 0189c07

Please sign in to comment.