Home
last modified time | relevance | path

Searched refs:execution_options (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/client/
Dclient.cc168 const ExecutionOptions* execution_options, in ExecuteAndTransfer() argument
172 Execute(computation, arguments, execution_options, execution_profile)); in ExecuteAndTransfer()
175 if (execution_options && execution_options->has_shape_with_output_layout()) { in ExecuteAndTransfer()
177 Shape(execution_options->shape_with_output_layout()); in ExecuteAndTransfer()
219 const ExecutionOptions* execution_options) { in Compile() argument
223 if (execution_options == nullptr) { in Compile()
226 *request.mutable_execution_options() = *execution_options; in Compile()
228 if (request.execution_options().device_handles_size() > 1) { in Compile()
279 const ExecutionOptions* execution_options, in Execute() argument
283 if (!execution_options || execution_options->device_handles().empty()) { in Execute()
[all …]
Dclient.h64 const ExecutionOptions* execution_options = nullptr);
92 const ExecutionOptions* execution_options = nullptr,
103 ExecutionOptions execution_options; member
108 ExecutionOptions execution_options, in XlaComputationInstance()
112 execution_options(execution_options), in XlaComputationInstance()
173 const ExecutionOptions* execution_options = nullptr,
/external/tensorflow/tensorflow/compiler/xla/service/
Dlocal_service.cc100 ExecutionOptions execution_options = CreateDefaultExecutionOptions(); in CreateExecutionOptions() local
102 *execution_options.mutable_debug_options() = build_options.debug_options(); in CreateExecutionOptions()
105 *execution_options.mutable_shape_with_output_layout() = in CreateExecutionOptions()
110 *execution_options.mutable_shape_with_output_layout() = in CreateExecutionOptions()
113 execution_options.set_num_replicas(build_options.num_replicas()); in CreateExecutionOptions()
114 return execution_options; in CreateExecutionOptions()
164 ExecutionOptions execution_options = in CompileExecutable() local
169 CreateModuleConfig(program_shape, argument_layouts, &execution_options)); in CompileExecutable()
Dservice.cc267 const ExecutionOptions* execution_options) { in CreateModuleConfig() argument
291 if (execution_options != nullptr && in CreateModuleConfig()
292 execution_options->has_shape_with_output_layout()) { in CreateModuleConfig()
294 execution_options->shape_with_output_layout()); in CreateModuleConfig()
305 if (execution_options != nullptr) { in CreateModuleConfig()
306 if (execution_options->num_replicas() > 0) { in CreateModuleConfig()
307 config->set_replica_count(execution_options->num_replicas()); in CreateModuleConfig()
311 config->set_seed(execution_options->seed()); in CreateModuleConfig()
312 config->set_debug_options(execution_options->debug_options()); in CreateModuleConfig()
324 if (execution_options != nullptr && in CreateModuleConfig()
[all …]
Dcompile_only_service.cc74 ExecutionOptions execution_options; in CompileAheadOfTime() local
75 *execution_options.mutable_debug_options() = debug_options; in CompileAheadOfTime()
76 *execution_options.mutable_shape_with_output_layout() = in CompileAheadOfTime()
80 execution_options.mutable_device_assignment())); in CompileAheadOfTime()
86 instance.argument_layouts, &execution_options)); in CompileAheadOfTime()
Dservice.h192 const ExecutionOptions& execution_options);
196 const ExecutionOptions& execution_options, int64 requests_size,
201 const ExecutionOptions& execution_options,
226 const ExecutionOptions* execution_options);
/external/tensorflow/tensorflow/compiler/xla/tests/
Dclient_test.cc50 ExecutionOptions execution_options = execution_options_; in XLA_TEST_F() local
51 *execution_options.mutable_shape_with_output_layout() = in XLA_TEST_F()
57 client_->Execute(computation, {}, &execution_options)); in XLA_TEST_F()
80 ExecutionOptions execution_options = execution_options_; in XLA_TEST_F() local
83 *execution_options.mutable_shape_with_output_layout() = in XLA_TEST_F()
93 client_->ExecuteAndTransfer(computation, {}, &execution_options)); in XLA_TEST_F()
Dprng_test.cc207 ExecutionOptions execution_options = execution_options_; in XLA_TEST_F() local
208 execution_options.set_seed(125); in XLA_TEST_F()
212 /*arguments=*/{param0_data.get()}, &execution_options)); in XLA_TEST_F()
299 ExecutionOptions execution_options = execution_options_; in XLA_TEST_F() local
300 execution_options.set_seed(42); in XLA_TEST_F()
307 &execution_options)); in XLA_TEST_F()
Dclient_library_test_base.cc115 ExecutionOptions execution_options = execution_options_; in ExecuteAndTransfer() local
117 *execution_options.mutable_shape_with_output_layout() = in ExecuteAndTransfer()
121 &execution_options); in ExecuteAndTransfer()
135 ExecutionOptions execution_options = execution_options_; in ExecuteAndTransferReference() local
137 *execution_options.mutable_shape_with_output_layout() = in ExecuteAndTransferReference()
140 execution_options.clear_device_handles(); in ExecuteAndTransferReference()
142 &execution_options); in ExecuteAndTransferReference()
Dgather_operation_test.cc663 xla::ExecutionOptions execution_options = CreateDefaultExecutionOptions(); in XLA_TEST_F() local
664 *execution_options.add_device_handles() = devices[0]; in XLA_TEST_F()
669 execution_options, in XLA_TEST_F()
Dreshape_test.cc618 ExecutionOptions execution_options = execution_options_; in XLA_TEST_P() local
619 *execution_options.mutable_shape_with_output_layout() = in XLA_TEST_P()
625 ->ExecuteAndTransfer(computation, {input.get()}, &execution_options) in XLA_TEST_P()
768 ExecutionOptions execution_options = execution_options_; in XLA_TEST_P() local
769 *execution_options.mutable_shape_with_output_layout() = in XLA_TEST_P()
776 &execution_options) in XLA_TEST_P()
Dwhile_test.cc942 ExecutionOptions execution_options = execution_options_; in XLA_TEST_F() local
943 execution_options.set_seed(65); in XLA_TEST_F()
946 client_->ExecuteAndTransfer(computation, {}, &execution_options)); in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/xla/
Dexecution_options_util.cc21 ExecutionOptions execution_options; in CreateDefaultExecutionOptions() local
22 *(execution_options.mutable_debug_options()) = GetDebugOptionsFromFlags(); in CreateDefaultExecutionOptions()
23 return execution_options; in CreateDefaultExecutionOptions()
Dxla.proto392 ExecutionOptions execution_options = 2; field
420 ExecutionOptions execution_options = 3; field
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dtesting.cc68 auto execution_options = CreateDefaultExecutionOptions(); in MakeFakeDataViaDeviceOrDie() local
69 *execution_options.mutable_shape_with_output_layout() = shape.ToProto(); in MakeFakeDataViaDeviceOrDie()
71 *execution_options.mutable_debug_options() = *debug_opts; in MakeFakeDataViaDeviceOrDie()
73 return client->Execute(computation, /*arguments=*/{}, &execution_options) in MakeFakeDataViaDeviceOrDie()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dmaster_session.cc1221 GraphExecutionStateOptions execution_options; in Create() local
1222 execution_options.device_set = devices_.get(); in Create()
1223 execution_options.session_options = &session_opts_; in Create()
1227 graph_def, execution_options, &execution_state_)); in Create()