Commit 0449b54 1 parent de5439b commit 0449b54 Copy full SHA for 0449b54
File tree 9 files changed +15
-9
lines changed
example_combined/turnkeyml_plugin_example_combined
example_rt/turnkeyml_plugin_example_rt
9 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 8
8
import turnkeyml .common .exceptions as exp
9
9
import turnkeyml .common .filesystem as fs
10
10
from turnkeyml .run .onnxrt .within_conda import dummy_inputs
11
- from turnkeyml .common .performance import MeasuredPerformance
11
+ from turnkeyml .run .performance import MeasuredPerformance
12
12
13
13
14
14
combined_rt_name = "example-combined-rt"
Original file line number Diff line number Diff line change 1
1
import os
2
2
import numpy as np
3
3
from turnkeyml .run .basert import BaseRT
4
- from turnkeyml .common .performance import MeasuredPerformance
4
+ from turnkeyml .run .performance import MeasuredPerformance
5
5
import turnkeyml .common .exceptions as exp
6
6
from turnkeyml .common .filesystem import Stats
7
7
Original file line number Diff line number Diff line change 7
7
from abc import ABC , abstractmethod
8
8
import torch
9
9
import numpy as np
10
- from turnkeyml .common .performance import MeasuredPerformance , Device
10
+ from turnkeyml .run .performance import MeasuredPerformance , Device
11
11
import turnkeyml .common .build as build
12
12
import turnkeyml .common .exceptions as exp
13
13
import turnkeyml .common .filesystem as fs
Original file line number Diff line number Diff line change 10
10
apply_default_runtime ,
11
11
)
12
12
import turnkeyml .cli .parser_helpers as parser_helpers
13
- from turnkeyml .common .performance import Device , parse_device
13
+ from turnkeyml .run .performance import Device , parse_device
14
14
15
15
default_iterations = 100
16
16
benchmark_default_device = "x86"
File renamed without changes.
Original file line number Diff line number Diff line change 7
7
import torch
8
8
import numpy as np
9
9
from turnkeyml .run .basert import BaseRT
10
- from turnkeyml .common .performance import MeasuredPerformance
10
+ from turnkeyml .run .performance import MeasuredPerformance
11
11
from turnkeyml .run .onnxrt .execute import get_cpu_specs
12
12
import turnkeyml .common .build as build
13
13
import turnkeyml .common .exceptions as exp
Original file line number Diff line number Diff line change 2
2
import turnkeyml .tools .onnx as onnx_tools
3
3
import turnkeyml .common .plugins as plugins
4
4
import turnkeyml .tools .management_tools as mgmt
5
- from turnkeyml .run .benchmark_model import Benchmark
6
5
from turnkeyml .tools .discovery import Discover
7
6
import turnkeyml .tools .report as report
8
7
from turnkeyml .tools .load_build import LoadBuild
16
15
mgmt .Cache ,
17
16
mgmt .ModelsLocation ,
18
17
report .Report ,
19
- Benchmark ,
20
18
Discover ,
21
19
export .ExportPytorchModel ,
22
20
onnx_tools .OptimizeOnnxModel ,
40
38
)
41
39
42
40
SUPPORTED_TOOLS .append (tool_class )
41
+
42
+ # Give a "benchmark" tool installed by a plugin priority over
43
+ # a "benchmark" tool built into turnkeyml
44
+ tool_names = [tool .unique_name for tool in SUPPORTED_TOOLS ]
45
+ if "benchmark" not in tool_names :
46
+ from turnkeyml .run .benchmark_model import Benchmark
47
+
48
+ SUPPORTED_TOOLS .append (Benchmark )
Original file line number Diff line number Diff line change 1
- __version__ = "3.0.5 "
1
+ __version__ = "3.0.6 "
Original file line number Diff line number Diff line change 6
6
import os
7
7
import sys
8
8
import turnkeyml .common .filesystem as filesystem
9
- import turnkeyml .common .performance as performance
10
9
import turnkeyml .common .build as build
10
+ import turnkeyml .run .performance as performance
11
11
import turnkeyml .run .plugin_helpers as plugin_helpers
12
12
13
13
You can’t perform that action at this time.
0 commit comments