mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-28 03:20:58 +00:00
Fix unit test when TVM EP is enabled (#18189)
### Description TestInlinedLocalFunctionNotRemoved checks that local functions are not removed but TVM EP optimizes the whole graph after it is inlined.
This commit is contained in:
parent
398ef677ba
commit
3b63d85c25
1 changed files with 6 additions and 0 deletions
|
|
@ -582,7 +582,13 @@ TEST(FunctionTest, TestInlinedLocalFunctionNotRemoved) {
|
|||
|
||||
// myfun is not removed because it was claimed by InternalTestingEP
|
||||
model_proto = session_object.GetModel().ToProto();
|
||||
#ifdef USE_TVM
|
||||
// TVM EP takes the whole graph and optimizes it within its own framework.
|
||||
// It does not retain the original graph.
|
||||
ASSERT_EQ(0, model_proto.functions_size());
|
||||
#else
|
||||
ASSERT_EQ(1, model_proto.functions_size());
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace test
|
||||
|
|
|
|||
Loading…
Reference in a new issue