onnxruntime/onnxruntime/test
pengwa fe0db63dee
Upstream reshape of merging batch/sequence (#15023)
### Upstream reshape of merging batch/sequence

For Reshape node that fulfills following requirements:
- input data rank = 3
- input shape is constant initializer, the untorched dim value MUST be a
constant value.
- Reshape is merging the first dimension, so output data rank = 2.

We upstream it to make it run as earlier as possible. Doing this will
allow us to upstream other operators (Gather) that is blocked by those
kind of Reshape node.

Currently, we did not enable it in graph_transformer_utils, since the
combined upstream gather changes are not ready yet.

Before:


![image](https://user-images.githubusercontent.com/10530022/224698252-f9705082-9710-4385-95ec-f1ccf50dc0e3.png)


After:


![image](https://user-images.githubusercontent.com/10530022/224698381-7e124d0d-ba47-4f35-8e37-6015014cd1c4.png)
2023-04-05 18:51:07 +08:00
..
api_tests_without_env
common Fix CUDA tests for Ampere cards, and bump layernorm tests opset version (#14761) 2023-03-17 09:30:01 -07:00
contrib_ops Petermca/beamsearch whisper (#15339) 2023-04-04 09:09:10 -07:00
custom_op_registration Add ability to register custom ops by specifying a function name (#14177) 2023-01-12 15:11:34 +10:00
debug_node_inputs_outputs Bug Fix - WASM build break (#13699) 2022-11-20 23:30:31 -08:00
eager remove device_id parameter out of ExecutionProvider::GetAllocator() (#14580) 2023-02-13 10:01:07 -08:00
framework Graph transformer to ensure unique DQ nodes for QDQ node units (#15145) 2023-03-31 08:39:43 +10:00
fuzzing Remove previously deprecated API (#12935) 2022-09-14 10:58:03 -07:00
global_thread_pools [oneDNN] Improved thread handling (#13618) 2023-01-31 14:37:13 -08:00
ir to work with onnx 1.13 rc, implement ver 18 reduce and optioanl ops, … (#13765) 2023-01-09 10:26:16 -08:00
logging_apis Add logging APIs for custom operators (#14416) 2023-03-17 15:05:28 -07:00
mlas Add float16 Tanh support (#15048) 2023-03-16 18:57:38 -07:00
onnx Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
opaque_api Deprecate APIs returning raw ptrs and provide replacements (#11922) 2022-06-24 09:50:04 -07:00
optimizer Upstream reshape of merging batch/sequence (#15023) 2023-04-05 18:51:07 +08:00
perftest refactor 2023-03-15 13:23:56 +08:00
platform Tune test case for hybrid cpu (#14204) 2023-01-10 12:54:02 -08:00
proto
providers Adds int32_t and uint32_t clip kernels (#15306) 2023-04-04 13:44:50 -07:00
python Add support for full ViT optimization (#15289) 2023-04-04 14:05:24 -07:00
quantization remove device_id parameter out of ExecutionProvider::GetAllocator() (#14580) 2023-02-13 10:01:07 -08:00
shared_lib Update the post-merge pipeline (#14965) 2023-03-29 13:12:07 -07:00
testdata Upstream reshape of merging batch/sequence (#15023) 2023-04-05 18:51:07 +08:00
unittest_main
util Add InstanceNormalization operator to QNN EP (#14867) 2023-03-10 14:42:41 -08:00
wasm [js/web] allow unittest (onnxruntime_test_all) to run in browser (#14820) 2023-02-24 16:45:33 -08:00
win_getopt
xctest Add ability to register custom ops by specifying a function name (#14177) 2023-01-12 15:11:34 +10:00