Home
last modified time | relevance | path

Searched refs:device_shape (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/stream_executor/tpu/
Dtpu_executable_interface.cc63 Shape device_shape = HostShapeToDeviceShape(host_shape); in AllocateOutputMemoryWithInputReuse() local
86 if (!Shape::Equal().MinorToMajorOnlyInLayout()(host_shape, device_shape)) { in AllocateOutputMemoryWithInputReuse()
89 << ShapeUtil::HumanStringWithLayout(device_shape); in AllocateOutputMemoryWithInputReuse()
93 ExecutionOutput result(std::move(device_shape), allocator, device_ordinal); in AllocateOutputMemoryWithInputReuse()
Dtpu_executable.cc112 Shape device_shape = ApiConverter::FromC(&c_device_shape); in HostShapeToDeviceShape() local
115 return device_shape; in HostShapeToDeviceShape()
Dtpu_transfer_manager.cc61 xla::Shape device_shape = ApiConverter::FromC(&c_device_shape); in HostShapeToDeviceShape() local
64 return device_shape; in HostShapeToDeviceShape()
Dtpu_executor_c_api.h181 XLA_Shape* device_shape);
/external/tensorflow/tensorflow/compiler/xla/service/
Dtransfer_manager.cc204 Shape* device_shape) { in ReadDynamicShapes() argument
205 DCHECK(device_shape->is_dynamic()); in ReadDynamicShapes()
206 Shape original_device_shape = *device_shape; in ReadDynamicShapes()
214 ShapeUtil::GetSubshape(*device_shape, index); in ReadDynamicShapes()
219 *ShapeUtil::GetMutableSubshape(device_shape, index); in ReadDynamicShapes()
248 device_shape->clear_dynamic_dimensions(); in ReadDynamicShapes()
250 TF_RET_CHECK(ShapeUtil::DynamicShapeIsCompatible(*device_shape, in ReadDynamicShapes()
Dtransfer_manager.h198 Shape* device_shape);
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_state.cc416 xla::Shape* device_shape) { in ExpandTreeOfTuples() argument
420 *device_shape = elements.shape(); in ExpandTreeOfTuples()
440 *xla::ShapeUtil::GetMutableSubshape(device_shape, index) = in ExpandTreeOfTuples()
463 xla::Shape device_shape; in MakeTuple() local
465 &host_shape, &device_shape)); in MakeTuple()
471 device_ordinal, allocator, host_shape, device_shape); in MakeTuple()
486 xla::ShapeUtil::GetSubshape(device_shape, index); in MakeTuple()
Dxrt_state.h270 xla::Shape* device_shape);
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_execute_op.cc162 explicit InputBuffers(xla::Shape device_shape) in InputBuffers()
163 : buffers(std::move(device_shape)) {} in InputBuffers()
459 const xla::Shape& device_shape = in AllocateOutputTensors() local
467 xla::ScopedShapedBuffer shaped_buffer(device_shape, allocator, in AllocateOutputTensors()
/external/tensorflow/tensorflow/core/tpu/
Dtpu_execute.cc112 xla::Shape device_shape = ApiConverter::FromC(&c_device_shape); in HostShapeToDeviceShape() local
115 return device_shape; in HostShapeToDeviceShape()
Dtpu_ops_c_api.h178 XLA_Shape* host_shape, XLA_Shape* device_shape);
/external/tensorflow/tensorflow/compiler/jit/
Dxla_launch_util.cc236 const xla::Shape& device_shape = in PopulateInputs() local
268 arguments.emplace_back(device_shape, shape); in PopulateInputs()
270 if (xla::Shape::Equal().MinorToMajorOnlyInLayout()(shape, device_shape)) { in PopulateInputs()