Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/stream_executor/tpu/
Dtpu_executable_interface.cc55 const Shape& host_shape, const HloInputOutputAliasConfig& alias_config, in AllocateOutputMemoryWithInputReuse() argument
62 << " host_shape = " << ShapeUtil::HumanStringWithLayout(host_shape); in AllocateOutputMemoryWithInputReuse()
63 Shape device_shape = HostShapeToDeviceShape(host_shape); in AllocateOutputMemoryWithInputReuse()
85 << " host_shape = " << ShapeUtil::HumanStringWithLayout(host_shape); in AllocateOutputMemoryWithInputReuse()
86 if (!Shape::Equal().MinorToMajorOnlyInLayout()(host_shape, device_shape)) { in AllocateOutputMemoryWithInputReuse()
88 << ShapeUtil::HumanStringWithLayout(host_shape) << " -> " in AllocateOutputMemoryWithInputReuse()
Dtpu_executable_interface.h67 const Shape& host_shape, const HloInputOutputAliasConfig& alias_config,
82 virtual Shape HostShapeToDeviceShape(const Shape& host_shape) = 0;
Dtpu_transfer_manager.h42 const xla::Shape& host_shape) const override;
71 const xla::Shape& host_shape) const override;
Dtpu_transfer_manager.cc53 const xla::Shape& host_shape) const { in HostShapeToDeviceShape()
57 ApiConverter::ToC(host_shape, &c_host_shape); in HostShapeToDeviceShape()
225 const xla::Shape& host_shape) const { in ChooseCompactLayoutForShape()
227 ApiConverter::ToC(host_shape, &c_host_shape); in ChooseCompactLayoutForShape()
Dtpu_executable.cc106 Shape TpuExecutable::HostShapeToDeviceShape(const Shape& host_shape) { in HostShapeToDeviceShape() argument
109 ApiConverter::ToC(host_shape, &c_host_shape); in HostShapeToDeviceShape()
Dtpu_executable.h59 Shape HostShapeToDeviceShape(const Shape& host_shape) override;
Dtpu_executor_c_api.h180 XLA_Shape* host_shape,
192 XLA_TransferManager* manager, XLA_Shape* host_shape, XLA_Shape* output,
/external/tensorflow/tensorflow/compiler/xla/service/
Dexecutable.h67 ExecutionInput(xla::Shape shape, xla::Shape host_shape) in ExecutionInput() argument
78 xla::Shape host_shape) in ExecutionInput() argument
93 const Shape& host_shape() const { in host_shape() function
132 void SetHostShape(xla::Shape host_shape) { in SetHostShape() argument
133 if (shape() != host_shape) { in SetHostShape()
134 host_shape_ = absl::make_unique<Shape>(std::move(host_shape)); in SetHostShape()
Dtransfer_manager.h53 virtual Shape HostShapeToDeviceShape(const Shape& host_shape) const { in HostShapeToDeviceShape() argument
58 return ShapeUtil::DeviceShapeToHostShape(host_shape); in HostShapeToDeviceShape()
244 const Shape& host_shape) const;
Dtransfer_manager.cc421 const Shape& host_shape) const { in ChooseCompactLayoutForShape()
422 return LayoutUtil::GetWithDefaultLayout(host_shape); in ChooseCompactLayoutForShape()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_execute_op.cc170 xla::ShapedBuffer ToShapedBuffer(xla::Shape host_shape, in ToShapedBuffer()
174 xla::ShapedBuffer shaped_buffer(std::move(host_shape), buffers.shape(), in ToShapedBuffer()
321 const xla::Shape& host_shape = in BuildComputationInputs() local
325 host_shape, allocator, device_ordinal)); in BuildComputationInputs()
663 xla::Shape host_shape(executable.input_shapes(0)); in DoWork() local
673 BuildComputationInputs(context, host_shape, variable_update_map, backend, in DoWork()
690 auto shaped_buffer = input_buffers->ToShapedBuffer(std::move(host_shape), in DoWork()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_state.cc415 se::DeviceMemoryAllocator* allocator, xla::Shape* host_shape, in ExpandTreeOfTuples() argument
419 *host_shape = elements.shape(); in ExpandTreeOfTuples()
438 *xla::ShapeUtil::GetMutableSubshape(host_shape, index) = in ExpandTreeOfTuples()
462 xla::Shape host_shape; in MakeTuple() local
465 &host_shape, &device_shape)); in MakeTuple()
471 device_ordinal, allocator, host_shape, device_shape); in MakeTuple()
Dxrt_state.h269 se::DeviceMemoryAllocator* allocator, xla::Shape* host_shape,
/external/tensorflow/tensorflow/core/tpu/
Dtpu_execute.cc106 xla::Shape HostShapeToDeviceShape(const xla::Shape& host_shape) { in HostShapeToDeviceShape() argument
109 ApiConverter::ToC(host_shape, &c_host_shape); in HostShapeToDeviceShape()
Dtpu_ops_c_api.h178 XLA_Shape* host_shape, XLA_Shape* device_shape);
Dtpu_on_demand_compiler.cc198 Shape HostShapeToDeviceShape(const Shape& host_shape) override { in HostShapeToDeviceShape() argument