MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ShapeSizeBytes

Method ShapeSizeBytes

tensorflow/compiler/xla/service/cpu/cpu_executable.cc:363–369  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

361}
362
363/*static*/ int64 CpuExecutable::ShapeSizeBytes(const Shape& shape) {
364 // On the cpu, opaques are pointers.
365 if (shape.IsOpaque()) {
366 return sizeof(void*);
367 }
368 return ShapeUtil::ByteSizeOf(shape, sizeof(void*));
369}
370
371const InstructionValueSet& CpuExecutable::GetRootValueSet() const {
372 return assignment_->dataflow_analysis().GetInstructionValueSet(

Callers

nothing calls this directly

Calls 2

IsOpaqueMethod · 0.80
ByteSizeOfFunction · 0.50

Tested by

no test coverage detected