Commit 020734a
committed
[tmva][sofie] Require
In commit 178a9f9, I activated several SOFIE tests by moving the SOFIE
PyTorch and Keras parsers out of `tmva/pymva`, because SOFIE and PyMVA
are unrelated and we lost test coverage for these SOFIE parsers, because
`tmva-pymva` is always disabled.
But as reported in #20571, we now see SOFIE test failures on macOS
because `torch.onnx` implicitly required `onnx>=1.19.1`, although this
is not part of the `torch` dependencies as `onnx` support is optional.
However, `onnx>=1.19.1` can't be installed on macOS because the
transient update of `ml_dtypes` is conflicting with the current version
of the `tensorflow` package.
To get out of this, we have to check `onnx>=1.19.1` ourselves and
disable some tests if the version is older. This is the solution with
the least test coverage regression. There is even no coverage regression
at all, if you compare to the state before 178a9f9 a few days ago.
We should also consider to require `onnx>=1.19.1` in our
`requirements.txt` in the future, so our users don't face similar
trouble from exporting PyTorch models to onnx. But this should only be
done once we are sure that it can also be installed on macOS without
breaking something else.
Closes #20571.onnx>=1.19.1 for tests1 parent 1df6d55 commit 020734a
1 file changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
113 | 141 | | |
114 | 142 | | |
115 | 143 | | |
| |||
129 | 157 | | |
130 | 158 | | |
131 | 159 | | |
132 | | - | |
133 | | - | |
| 160 | + | |
| 161 | + | |
134 | 162 | | |
135 | 163 | | |
136 | 164 | | |
| |||
151 | 179 | | |
152 | 180 | | |
153 | 181 | | |
154 | | - | |
| 182 | + | |
155 | 183 | | |
156 | 184 | | |
157 | 185 | | |
| |||
0 commit comments