File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
examples/cpu/features/hypertune
intel_extension_for_pytorch/cpu/hypertune/example Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,8 @@ def inference(model, data):
2121 latency = duration / measure_iter
2222 throughput = measure_iter / duration
2323
24- print (
25- "@hypertune {'name': 'latency (ms)'}"
26- ) # Add print statement of the form @hypertune {'name': str, 'higher_is_better': bool, 'target_val': int or float}`
27- print (
28- latency
29- ) # Print the objective(s) you want to optimize. Make sure this is just an int or float to be minimzied or maximized.
24+ print ("@hypertune {'name': 'latency (ms)'}" )
25+ print (latency )
3026
3127
3228def main (args ):
Original file line number Diff line number Diff line change @@ -21,12 +21,8 @@ def inference(model, data):
2121 latency = duration / measure_iter
2222 throughput = measure_iter / duration
2323
24- print (
25- "@hypertune {'name': 'latency (ms)'}"
26- ) # Add print statement of the form @hypertune {'name': str, 'higher_is_better': bool, 'target_val': int or float}`
27- print (
28- latency
29- ) # Print the objective(s) you want to optimize. Make sure this is just an int or float to be minimzied or maximized.
24+ print ("@hypertune {'name': 'latency (ms)'}" )
25+ print (latency )
3026
3127
3228def main (args ):
You can’t perform that action at this time.
0 commit comments