Пример #1
0
 def track_vort(self, runtime, N, nf, opset, dtype, optim):
     "asv API"
     try:
         from onnxruntime import __version__
         return version2number(__version__)
     except ImportError:  # pragma: no cover
         return 0
Пример #2
0
 def track_vsklearn(self, runtime, N, nf, opset, dtype, optim):
     "asv API"
     from sklearn import __version__
     return version2number(__version__)
Пример #3
0
 def test_version2number(self):
     for v in ['0.23.1', '0.24.dev0', '1.5.107']:
         r = version2number(v)
         self.assertGreater(r, 0.02)
         self.assertLess(r, 2)
Пример #4
0
 def track_vmlprodict(self, runtime, N, nf, opset, dtype, optim):
     "asv API"
     from mlprodict import __version__
     return version2number(__version__)
Пример #5
0
 def track_vort(self, runtime, N, nf, opset, dtype, optim):
     "asv API"
     return version2number(onnxrt_version)