Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Eichenberger <[email protected]>
  • Loading branch information
AlexandreEichenberger committed Dec 3, 2024
1 parent 974bc90 commit 671241d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
10 changes: 9 additions & 1 deletion test/backend/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
import sys
import os
import ctypes
import onnx

try:
import onnx
except ImportError:
print(
"Failed to include the `onnx` package; please install to successfully use this script."
)
exit(1)

import subprocess
import variables
from variables import *
Expand Down
12 changes: 10 additions & 2 deletions test/backend/inference_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@
import base64
import numpy as np
import re
import onnx
import onnx.parser

try:
import onnx
import onnx.parser
except ImportError:
print(
"Failed to include the `onnx` package; please install to successfully use this script."
)
exit(1)

import subprocess
from onnx.backend.base import Device, DeviceType, Backend
from onnx.backend.test import BackendTest
Expand Down
12 changes: 10 additions & 2 deletions test/backend/onnxmlir_node_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@
################################################################################

import numpy as np
import onnx
import onnx.parser

try:
import onnx
import onnx.parser
except ImportError:
print(
"Failed to include the `onnx` package; please install to successfully use this script."
)
exit(1)

from collections import namedtuple

OnnxMlirNodeTestCase = namedtuple(
Expand Down

0 comments on commit 671241d

Please sign in to comment.