MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / InitOptions

Function InitOptions

tensorflow/core/kernels/basic_ops_benchmark_test.cc:26–31  ·  view source on GitHub ↗

We focus on the single thread performance of running ops.

Source from the content-addressed store, hash-verified

24
25// We focus on the single thread performance of running ops.
26static SessionOptions InitOptions() {
27 SessionOptions opts;
28 opts.config.set_intra_op_parallelism_threads(1);
29 opts.config.set_inter_op_parallelism_threads(1);
30 return opts;
31}
32
33static SessionOptions* GetOptions() {
34 static SessionOptions opts = InitOptions();

Callers 2

InitOssMethod · 0.85
GetOptionsFunction · 0.85

Tested by

no test coverage detected