We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef5c2db commit aabde77Copy full SHA for aabde77
mlx_onnx.go
@@ -1,4 +1,5 @@
1
-// +build cgo
+//go:build cgo && onnx
2
+// +build cgo,onnx
3
4
package mlx
5
mlx_onnx_stub.go
@@ -0,0 +1,18 @@
+//go:build !onnx
+// +build !onnx
+
+package mlx
6
+// Stub functions when ONNX is not available
7
8
+func detectONNXBackend() bool {
9
+ return false
10
+}
11
12
+func getONNXVersion() string {
13
+ return "not available"
14
15
16
+func hasONNXSupport() bool {
17
18
0 commit comments