Home
last modified time | relevance | path

Searched refs:argument_layouts (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dutils.cc150 absl::optional<std::vector<Shape>>& argument_layouts, in DetermineArgumentLayoutsFromCompileOptions() argument
155 if (!argument_layouts) { in DetermineArgumentLayoutsFromCompileOptions()
156 argument_layouts.emplace(program_shape.parameters()); in DetermineArgumentLayoutsFromCompileOptions()
157 for (Shape& shape : *argument_layouts) { in DetermineArgumentLayoutsFromCompileOptions()
160 } else if (argument_layouts->size() != program_shape.parameters_size()) { in DetermineArgumentLayoutsFromCompileOptions()
164 argument_layouts->size(), program_shape.parameters_size()); in DetermineArgumentLayoutsFromCompileOptions()
166 argument_layout_pointers->reserve(argument_layouts->size()); in DetermineArgumentLayoutsFromCompileOptions()
190 CHECK_EQ(sharded_shapes.first.size(), argument_layouts->size()); in DetermineArgumentLayoutsFromCompileOptions()
191 for (int i = 0; i < argument_layouts->size(); ++i) { in DetermineArgumentLayoutsFromCompileOptions()
192 Shape* layout = &(*argument_layouts)[i]; in DetermineArgumentLayoutsFromCompileOptions()
Dutils.h44 absl::optional<std::vector<Shape>>& argument_layouts,
Dpjrt_client.h117 absl::optional<std::vector<Shape>> argument_layouts; member
Dpjrt_stream_executor_client.cc2145 options.argument_layouts, &options.executable_build_options, in Compile()
/external/tensorflow/tensorflow/compiler/xla/service/
Dlocal_service.cc103 const absl::Span<const Shape* const> argument_layouts, in CompileExecutables() argument
110 if (argument_layouts.size() != program_shape.parameters_size()) { in CompileExecutables()
113 program_shape.parameters_size(), argument_layouts.size()); in CompileExecutables()
116 for (int i = 0; i < argument_layouts.size(); ++i) { in CompileExecutables()
117 const Shape& argument_shape = *argument_layouts[i]; in CompileExecutables()
151 CreateModuleConfig(program_shape, argument_layouts, &execution_options)); in CompileExecutables()
Dlocal_service.h52 const absl::Span<const Shape* const> argument_layouts,
Dcompile_only_service.h44 std::vector<const Shape*> argument_layouts; member
Dcompile_only_service.cc107 instance.argument_layouts, &execution_options, &options)); in CompileAheadOfTime()
/external/tensorflow/tensorflow/compiler/xla/client/
Dcompile_only_client.cc47 service_instance.argument_layouts = instance.argument_layouts; in CompileAheadOfTime()
Dcompile_only_client.h44 std::vector<const Shape*> argument_layouts; member
Dlocal_client.h145 const absl::Span<const Shape* const> argument_layouts,
Dlocal_client.cc358 const absl::Span<const Shape* const> argument_layouts, in Compile() argument
385 computation, argument_layouts, updated_options)); in Compile()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_test_base.cc192 std::vector<const Shape*> argument_layouts(arguments.size()); in ExecuteLocally() local
194 argument_layouts[i] = &arguments[i]->on_host_shape(); in ExecuteLocally()
198 local_client_->Compile(computation, argument_layouts, build_options)); in ExecuteLocally()
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dxrt_compile_ops.cc152 std::vector<xla::Shape> argument_layouts( in Compile() local
157 argument_layouts[i] = xla::Shape(config.program_shape().parameters(i)); in Compile()
158 argument_layout_ptrs[i] = &argument_layouts[i]; in Compile()
/external/tensorflow/tensorflow/compiler/xla/tools/
Dreplay_computation.cc117 std::vector<Shape> argument_layouts; in CompileExecutable() local
118 argument_layouts.reserve( in CompileExecutable()
123 argument_layouts.push_back(Shape(param)); in CompileExecutable()
124 argument_layout_ptrs.push_back(&argument_layouts.back()); in CompileExecutable()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_compilation_cache.cc163 std::vector<const xla::Shape*> argument_layouts( in BuildExecutable() local
166 argument_layouts[i] = &result.xla_input_shapes[i]; in BuildExecutable()
179 client_->Compile(*result.computation, argument_layouts, build_options)); in BuildExecutable()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_util.cc59 instance.argument_layouts.push_back(&shape); in BuildAotXlaComputationInstance()
/external/tensorflow/tensorflow/compiler/aot/
Dcompile.cc87 instance.argument_layouts = std::move(arg_layout_ptrs); in CompileXla()
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/client/
Dtpu_client_extension.cc136 computation, options.argument_layouts, in PYBIND11_MODULE()
Dtpu_client.h293 absl::optional<std::vector<Shape>> argument_layouts,
Dtpu_client.cc796 absl::optional<std::vector<Shape>> argument_layouts, in Compile() argument
834 CHECK(!argument_layouts.has_value()); in Compile()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_compiler.cc449 .def_readwrite("argument_layouts", &CompileOptions::argument_layouts) in BuildXlaCompilerSubmodule()
Dxla_client_test.py1873 options.argument_layouts = [