Home
last modified time | relevance | path

Searched refs:on_device_shape (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dtransfer_manager.cc158 const Shape on_device_shape = HostShapeToDeviceShape(literal.shape()); in TransferArrayToDeviceAsync() local
159 TF_RET_CHECK(on_device_shape.IsArray()) in TransferArrayToDeviceAsync()
162 << " is not an array: " << ShapeUtil::HumanString(on_device_shape); in TransferArrayToDeviceAsync()
163 if (dest.size() < GetByteSizeRequirement(on_device_shape)) { in TransferArrayToDeviceAsync()
167 dest.size(), GetByteSizeRequirement(on_device_shape)); in TransferArrayToDeviceAsync()
169 ShapedBuffer shaped_buffer(/*on_host_shape=*/literal.shape(), on_device_shape, in TransferArrayToDeviceAsync()
244 device_buffer.on_device_shape(), in WriteTupleIndexTablesAsync()
269 TF_RET_CHECK(device_buffer.on_device_shape().IsTuple()); in WriteRootTupleIndexTable()
271 TF_RET_CHECK(GetByteSizeRequirement(device_buffer.on_device_shape()) == in WriteRootTupleIndexTable()
276 i < ShapeUtil::TupleElementCount(device_buffer.on_device_shape()); ++i) { in WriteRootTupleIndexTable()
[all …]
Dshaped_buffer.cc35 const Shape& on_device_shape, in ShapedBuffer() argument
38 on_device_shape_(on_device_shape), in ShapedBuffer()
82 ShapeUtil::HumanStringWithLayout(on_device_shape()), in ToString()
85 on_device_shape(), in ToString()
107 const Shape& on_device_shape, in ScopedShapedBuffer() argument
110 : ShapedBuffer(on_host_shape, on_device_shape, allocator->platform(), in ScopedShapedBuffer()
164 xla::ShapeUtil::GetSubshape(on_device_shape(), {index}); in TakeSubTree()
Dallocation_tracker.cc80 shaped_buffer.on_device_shape(), in RegisterInternal()
113 shaped_buffer->on_device_shape(), in Unregister()
151 TF_RET_CHECK(shaped_buffer->on_device_shape().IsTuple()); in DeconstructTuple()
153 if (ShapeUtil::IsNestedTuple(shaped_buffer->on_device_shape())) { in DeconstructTuple()
159 i < ShapeUtil::TupleElementCount(shaped_buffer->on_device_shape()); in DeconstructTuple()
163 ShapeUtil::GetTupleElementShape(shaped_buffer->on_device_shape(), i), in DeconstructTuple()
Dshaped_buffer.h45 ShapedBuffer(const Shape& on_host_shape, const Shape& on_device_shape,
66 const Shape& on_device_shape() const { return on_device_shape_; } in on_device_shape() function
137 const Shape& on_device_shape,
Dgeneric_transfer_manager.cc80 TF_RET_CHECK(ShapeUtil::Equal(device_buffer.on_device_shape(), in TransferLiteralFromDeviceInternal()
110 TF_RET_CHECK(ShapeUtil::Equal(device_buffer.on_device_shape(), in TransferLiteralToDeviceAsync()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_state.cc101 xla::Shape on_device_shape = transfer_manager->HostShapeToDeviceShape(shape); in AllocateScopedShapedBuffer() local
104 << xla::ShapeUtil::HumanStringWithLayout(on_device_shape); in AllocateScopedShapedBuffer()
110 shape, on_device_shape, allocator, device_ordinal); in AllocateScopedShapedBuffer()
113 xla::ShapeUtil::GetSubshape(on_device_shape, index_to_buffer.first); in AllocateScopedShapedBuffer()
170 const xla::Shape& on_device_shape) in XRTTupleAllocation() argument
174 on_device_shape_(on_device_shape), in XRTTupleAllocation()
203 shaped_buffer.on_device_shape()); in CreateAndTransfer()
216 shaped_buffer.on_device_shape()); in CreateFromBuffer()
262 const xla::Shape& XRTTupleAllocation::on_device_shape() { in on_device_shape() function in tensorflow::XRTTupleAllocation
303 xla::ShapeUtil::TryGetSubshape(parent->on_device_shape(), subshape)); in MakeSubBuffer()
[all …]
Dxrt_state.h166 const xla::Shape& on_device_shape();
198 const xla::Shape& on_device_shape);
/external/tensorflow/tensorflow/compiler/jit/
Dxla_tensor.cc50 xla::Shape on_device_shape = in AllocateShapedBuffer() local
54 xla::ScopedShapedBuffer shaped_buffer(on_host_shape, on_device_shape, in AllocateShapedBuffer()
59 xla::ShapeUtil::GetSubshape(on_device_shape, index_to_buffer.first); in AllocateShapedBuffer()
Dxla_launch_util.cc238 const xla::Shape on_device_shape = in PopulateInputs() local
240 if (on_device_shape.IsTuple()) { in PopulateInputs()
245 CHECK(xla::ShapeUtil::Equal(shape, on_device_shape)) in PopulateInputs()
247 << xla::ShapeUtil::HumanStringWithLayout(on_device_shape) in PopulateInputs()
270 << output.on_device_shape().DebugString(); in PopulateOutputs()
281 xla::ShapeUtil::MakeTupleShape({nontuple_buffer.on_device_shape()}), in PopulateOutputs()
Dxla_device.cc125 *shape = shaped_buffer.on_device_shape(); in DefaultPaddedShapeFn()
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dxrt_execute_op.cc251 output_tuple->on_device_shape().IsTuple()) { in DoWork()
253 xla::ShapeUtil::TupleElementCount(output_tuple->on_device_shape()); in DoWork()
/external/tensorflow/tensorflow/compiler/xla/service/interpreter/
Dexecutable.cc74 const auto& actual_shape = arguments[i]->on_device_shape(); in ExecuteOnStream()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_execute_test.cc133 EXPECT_TRUE(LayoutUtil::Equal(x_array.on_device_shape().layout(), in XLA_TEST_F()
139 EXPECT_TRUE(LayoutUtil::Equal(y_array.on_device_shape().layout(), in XLA_TEST_F()
174 EXPECT_TRUE(LayoutUtil::Equal(result_colmaj.on_device_shape().layout(), in XLA_TEST_F()
186 EXPECT_TRUE(LayoutUtil::Equal(result_rowmaj.on_device_shape().layout(), in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/xla/python/
Dlocal_computation_builder.cc130 return shaped_buffer()->on_device_shape(); in shape()