Home
last modified time | relevance | path

Searched refs:ByteSizeOf (Results 1 – 25 of 54) sorted by relevance

123

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_schedule_test.cc59 return ShapeUtil::ByteSizeOf(buffer.shape()); in TEST_F()
93 return ShapeUtil::ByteSizeOf(buffer.shape()); in TEST_F()
142 return ShapeUtil::ByteSizeOf(buffer.shape()); in TEST_F()
186 return ShapeUtil::ByteSizeOf(buffer.shape()); in TEST_F()
247 return ShapeUtil::ByteSizeOf(buffer.shape(), in TEST_F()
316 return ShapeUtil::ByteSizeOf(buffer.shape(), in TEST_F()
Dhlo_memory_scheduler_test.cc91 return ShapeUtil::ByteSizeOf(buffer.shape()); in TEST_F()
142 return ShapeUtil::ByteSizeOf(buffer.shape(), /*pointer_size=*/8); in TEST_F()
195 return ShapeUtil::ByteSizeOf(buffer.shape(), /*pointer_size=*/8); in TEST_F()
249 return ShapeUtil::ByteSizeOf(buffer.shape(), TUPLE_SIZE); in TEST_F()
300 return ShapeUtil::ByteSizeOf(buffer.shape(), 2); in TEST_F()
Dhlo_rematerialization_test_utils.h139 static int64 ByteSizeOf(const Shape& shape) { in ByteSizeOf() function
140 return ShapeUtil::ByteSizeOf(shape, sizeof(void*)); in ByteSizeOf()
Dhlo_input_output_alias_config_test.cc169 return ShapeUtil::ByteSizeOf(shape); in TEST_F()
195 return ShapeUtil::ByteSizeOf(shape); in TEST_F()
Dhlo_execution_profile_test.cc50 return ShapeUtil::ByteSizeOf(shape, pointer_size); in TEST_F()
Dhlo_rematerialization_test.cc47 [](const BufferValue& buffer) { return ByteSizeOf(buffer.shape()); }, in RunHloRematerialization()
51 ByteSizeOf, memory_limit_bytes, in RunHloRematerialization()
291 /*memory_limit_bytes=*/4 * ByteSizeOf(vec1024_shape_), module.get())); in TEST_F()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dthunk_emitter.h37 virtual int64 ByteSizeOf(const Shape& shape) const = 0;
63 int64 ByteSizeOf(const Shape& shape) { return context_->ByteSizeOf(shape); } in ByteSizeOf() function
Dfusion_merger.cc77 bytes += ShapeUtil::ByteSizeOf(user->shape()); in CalculateBytesReadByFusionParameter()
81 bytes += ShapeUtil::ByteSizeOf(instruction->shape()); in CalculateBytesReadByFusionParameter()
107 bytes_written += ShapeUtil::ByteSizeOf(operand->shape()); in GetCurrentBytesTransferred()
111 ShapeUtil::ByteSizeOf(fusion->fused_expression_root()->shape()); in GetCurrentBytesTransferred()
Dcudnn_pad_for_convolutions.cc246 int64 old_bytes = ShapeUtil::ByteSizeOf(old_shape); in TryResolvePaddedShapesForTensorCore()
247 int64 new_bytes = ShapeUtil::ByteSizeOf(new_shape); in TryResolvePaddedShapesForTensorCore()
355 int64 old_bytes = ShapeUtil::ByteSizeOf(old_shape); in TryResolvePaddedShapesForIntegerConvolution()
356 int64 new_bytes = ShapeUtil::ByteSizeOf(new_shape); in TryResolvePaddedShapesForIntegerConvolution()
Dir_emitter_nested.cc57 llvm_ir::ByteSizeOf(param_shape, module_->getDataLayout()); in CodegenNestedComputation()
66 int64 root_size = llvm_ir::ByteSizeOf( in CodegenNestedComputation()
Dthunk_emitter.cc88 /*mem_size=*/ShapeUtil::ByteSizeOf(inst->shape()), nullptr)); in BuildGemmThunk()
265 /*mem_size=*/ShapeUtil::ByteSizeOf(shape), custom_call)); in HandleCustomCall()
347 /*mem_size=*/ShapeUtil::ByteSizeOf(hlo->operand(1)->shape()), hlo)); in HandleTriangularSolve()
Dgpu_compiler.h98 return ShapeUtil::ByteSizeOf(shape, pointer_size); in ShapeSizeBytesFunction()
Dgpu_conv_algorithm_picker.cc396 ShapeUtil::ByteSizeOf(operand->shape()))); in PickBestAlgorithmNoCacheCuda()
402 ShapeUtil::ByteSizeOf(result_shape))); in PickBestAlgorithmNoCacheCuda()
663 ShapeUtil::ByteSizeOf(operand->shape()))); in PickBestAlgorithmNoCacheRocm()
671 ShapeUtil::ByteSizeOf(instr->shape().tuple_shapes(0)))); in PickBestAlgorithmNoCacheRocm()
Dir_emitter_unnested.h148 int64 ByteSizeOf(const Shape& shape) const override { in ByteSizeOf() function
149 return llvm_ir::ByteSizeOf( in ByteSizeOf()
Dgpu_hlo_schedule.cc206 return ShapeUtil::ByteSizeOf(buffer.shape(), pointer_size); in Build()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/tests/
Dcpu_bytesizeof_test.cc27 EXPECT_EQ(xla::llvm_ir::ByteSizeOf(tuple_shape, data_layout), in TEST_F()
35 EXPECT_EQ(xla::llvm_ir::ByteSizeOf(tuple_shape, data_layout), in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dobject.h85 inline size_t ByteSizeOf(const Object& object);
120 inline size_t ByteSizeOf(const Object& object) { in ByteSizeOf() function
Dapi.cc208 object_sizes_[GetRef(object)] = ByteSizeOf(object); in Add()
287 object_sizes_[GetRef(object)] = ByteSizeOf(object); in OnProgram()
/external/tensorflow/tensorflow/compiler/xla/
Dshape_util_test.cc311 EXPECT_EQ(4, ShapeUtil::ByteSizeOf(ShapeUtil::MakeShape(F32, {}))); in TEST()
312 EXPECT_EQ(800, ShapeUtil::ByteSizeOf(ShapeUtil::MakeShape(F32, {10, 20}))); in TEST()
315 EXPECT_EQ(8, ShapeUtil::ByteSizeOf(ShapeUtil::MakeShape(F64, {}))); in TEST()
316 EXPECT_EQ(1600, ShapeUtil::ByteSizeOf(ShapeUtil::MakeShape(F64, {10, 20}))); in TEST()
319 EXPECT_EQ(8, ShapeUtil::ByteSizeOf(ShapeUtil::MakeShape(C64, {}))); in TEST()
320 EXPECT_EQ(1600, ShapeUtil::ByteSizeOf(ShapeUtil::MakeShape(C64, {10, 20}))); in TEST()
323 EXPECT_EQ(0, ShapeUtil::ByteSizeOf(ShapeUtil::MakeTokenShape())); in TEST()
/external/tensorflow/tensorflow/compiler/xla/service/mlir_gpu/
Dmlir_compiler.h60 return ShapeUtil::ByteSizeOf(shape, pointer_size); in ShapeSizeBytesFunction()
Dlhlo_dialect_emitter.h84 int64 ByteSizeOf(const Shape& shape) const override;
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dtesting.cc38 return ShapeUtil::ByteSizeOf(shape); in DataSizeOfShape()
/external/tensorflow/tensorflow/compiler/xla/python/
Dtypes.cc322 if (buffer_info.size * buffer_info.itemsize != ShapeUtil::ByteSizeOf(shape)) { in CastToArray()
325 " vs. ", ShapeUtil::ByteSizeOf(shape))); in CastToArray()
/external/tensorflow/tensorflow/compiler/xla/service/interpreter/
Dexecutable.cc154 return ShapeUtil::ByteSizeOf(shape, sizeof(void*)); in ShapeSizeBytes()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_runtime.cc434 se::DeviceMemoryBase(input_buffer, xla::ShapeUtil::ByteSizeOf(shape)); in __xla_cpu_runtime_AllReduce()
436 se::DeviceMemoryBase(output_buffer, xla::ShapeUtil::ByteSizeOf(shape)); in __xla_cpu_runtime_AllReduce()

123