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

Commit

Permalink
Some corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
vandanavk committed Dec 18, 2018
1 parent 8aa9cab commit fdf8408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
7 changes: 1 addition & 6 deletions tests/python-pytest/onnx/mxnet_export_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
# specific language governing permissions and limitations
# under the License.

"""
Tests for individual operators
This module contains operator tests which currently do not exist on
ONNX backend test framework. Once we have PRs on the ONNX repo and get
those PRs merged, this file will get EOL'ed.
"""

# pylint: disable=too-many-locals,wrong-import-position,import-error
from __future__ import absolute_import
import os
Expand Down
7 changes: 1 addition & 6 deletions tests/python-pytest/onnx/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
# specific language governing permissions and limitations
# under the License.

"""
Tests for individual operators
This module contains operator tests which currently do not exist on
ONNX backend test framework. Once we have PRs on the ONNX repo and get
those PRs merged, this file will get EOL'ed.
"""

# pylint: disable=too-many-locals,wrong-import-position,import-error
from __future__ import absolute_import
import sys
Expand Down
2 changes: 1 addition & 1 deletion tests/python-pytest/onnx/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_rnd(shape, low=-1.0, high=1.0, dtype=np.float32):
return (np.random.uniform(low, high,
np.prod(shape)).reshape(shape).astype(np.float32))
elif dtype == np.int32:
return (np.random.uniform(low, high,
return (np.random.randint(low, high,
np.prod(shape)).reshape(shape).astype(np.float32))
elif dtype == np.bool_:
return np.random.choice(a=[False, True], size=shape).astype(np.float32)
Expand Down

0 comments on commit fdf8408

Please sign in to comment.