(inter_threads, intra_threads)
| 28 | exit(1) |
| 29 | |
| 30 | def popen_with(inter_threads, intra_threads): |
| 31 | user_args = [arg for arg in sys.argv[2:] if arg != "--log_profiling"] |
| 32 | tune_args = ['--inter_threads', str(inter_threads), '--intra_threads', str(intra_threads), '--log_throughput', '--device', 'cpu'] |
| 33 | return subprocess.Popen([translate_bin_path] + user_args + tune_args, stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE) |
| 34 | |
| 35 | def performance_with_parameters(inter_threads, intra_threads): |
| 36 | translate = popen_with(inter_threads, intra_threads) |
no outgoing calls
no test coverage detected