aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/tests/tensor
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2021-05-26 11:52:40 +0000
committerHåvard Pettersen <havardpe@oath.com>2021-05-26 12:13:34 +0000
commitc7d738acb70c80f37804608ec2bb45fcf46748de (patch)
tree0852ef41a5415b31b20f5bbab3ce0b8b96006262 /eval/src/tests/tensor
parent0ad9385f7c77711ab64818a78ce9fcc9cfe2e2dc (diff)
disable use of arena allocator
Diffstat (limited to 'eval/src/tests/tensor')
-rw-r--r--eval/src/tests/tensor/onnx_wrapper/onnx_wrapper_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/eval/src/tests/tensor/onnx_wrapper/onnx_wrapper_test.cpp b/eval/src/tests/tensor/onnx_wrapper/onnx_wrapper_test.cpp
index 9b44dd7519e..54f958f8111 100644
--- a/eval/src/tests/tensor/onnx_wrapper/onnx_wrapper_test.cpp
+++ b/eval/src/tests/tensor/onnx_wrapper/onnx_wrapper_test.cpp
@@ -436,4 +436,11 @@ TEST(OnnxTest, inspect_float_to_int8_conversion) {
//-------------------------------------------------------------------------
}
+TEST(OnnxTest, default_allocator_type) {
+ Ort::AllocatorWithDefaultOptions default_alloc;
+ OrtAllocatorType res = Invalid;
+ Ort::ThrowOnError(Ort::GetApi().MemoryInfoGetType(default_alloc.GetInfo(), &res));
+ fprintf(stderr, "default allocator type: %d\n", int(res));
+}
+
GTEST_MAIN_RUN_ALL_TESTS()