Skip to content

Commit be0cd88

Browse files
committed
Fixed linux specific issues
1 parent 414990b commit be0cd88

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,7 @@
5858
**/ui/build
5959
**/ui/.dart_tool
6060
**/.flutter-plugins
61-
**/.flutter-plugins-dependencies
61+
**/.flutter-plugins-dependencies
62+
63+
# macos files
64+
**/.DS_Store

kernels/onnxRT/ort_runner.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ class OnnxRuntimeRunner
6161

6262
#if defined(__linux__) || defined(_WIN32) || defined(UNDER_CE)
6363
// Register TensorRT Execution Provider
64-
OrtSessionOptionsAppendExecutionProvider_Tensorrt(
65-
session_options.operator OrtSessionOptions*(), 0);
64+
// @todo investigate why ort tensorrt is not working
65+
// OrtSessionOptionsAppendExecutionProvider_Tensorrt(
66+
// session_options.operator OrtSessionOptions*(), 0);
6667
#endif
6768
#if defined(__APPLE__)
6869
// Register CoreML Execution Provider

tests/integration_test/test_advanced_api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ class AdvancedIntegrationTest : public ::testing::Test
8282
vx_action action = VX_ACTION_ABANDON;
8383
vx_size expected = 2;
8484
vx_parameter param = vxGetParameterByIndex(node, 1); // copied Value
85-
if (param)
85+
if (vxGetStatus(param) == VX_SUCCESS)
8686
{
8787
vx_scalar scalar = nullptr;
8888
vxQueryParameter(param, VX_PARAMETER_REF, &scalar, sizeof(scalar));
89-
if (scalar)
89+
if (vxGetStatus(scalar) == VX_SUCCESS)
9090
{
9191
vx_uint8 value = 0u;
9292
vxCopyScalar(scalar, &value, VX_READ_ONLY, VX_MEMORY_TYPE_HOST);

0 commit comments

Comments
 (0)