onnxruntime/onnxruntime/test/python
pengwa ccc4487553
fix CI onnxruntime_test_python_sparse_matmul.py (#14039)
### Description

Numpy1.24.0 removed the np.float. 
```

  /opt/hostedtoolcache/Python/3.8.15/x64/bin/python onnxruntime_test_python_sparse_matmul.py
EE.
======================================================================
ERROR: testRunContribSparseMatMul (__main__.TestSparseToDenseMatmul)
Mutliple sparse COO tensor to dense
----------------------------------------------------------------------
Traceback (most recent call last):
  File "onnxruntime_test_python_sparse_matmul.py", line 407, in testRunContribSparseMatMul
    np.float,
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

======================================================================
ERROR: testRunSparseOutputOnly (__main__.TestSparseToDenseMatmul)
Try running models using the new run_with_ort_values
----------------------------------------------------------------------
Traceback (most recent call last):
  File "onnxruntime_test_python_sparse_matmul.py", line 39, in testRunSparseOutputOnly
    values = np.array([1.764052391052246, 0.40015721321105957, 0.978738009929657], np.float)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

```



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
2022-12-21 17:31:52 +08:00
..
contrib_ops
quantization Cjian/where python operator (#12795) 2022-12-12 13:27:47 -08:00
testdata
transformers Implement reuse past and present tensor in Attention Ops. (#13791) 2022-12-18 10:03:53 -08:00
helper.py
onnx_backend_test_series.py prepare test folder from GitHub (#12220) 2022-07-20 22:01:08 -07:00
onnxruntime_test_ort_trainer.py
onnxruntime_test_ort_trainer_with_mixed_precision.py
onnxruntime_test_python.py Allow CUDA EP enable or disable TunableOp via session options and environment variable (#13601) 2022-11-15 14:43:54 +08:00
onnxruntime_test_python_backend.py
onnxruntime_test_python_backend_mlops.py
onnxruntime_test_python_cudagraph.py
onnxruntime_test_python_iobinding.py
onnxruntime_test_python_keras.py
onnxruntime_test_python_mlops.py
onnxruntime_test_python_sparse_matmul.py fix CI onnxruntime_test_python_sparse_matmul.py (#14039) 2022-12-21 17:31:52 +08:00
onnxruntime_test_python_symbolic_shape_infer.py skip some models failed in dynamic shape infer (#13400) 2022-10-25 01:48:46 +08:00
onnxruntime_test_python_tvm.py [TVM EP][CI] Added TVMso EP testing into CI (#12188) 2022-07-19 16:05:28 +02:00
onnxruntime_test_training_unit_tests.py
onnxruntime_test_training_unittest_utils.py
test_pytorch_export_contrib_ops.py