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

Method GetR1U8AsString

tensorflow/compiler/xla/literal.cc:1993–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1991}
1992
1993string LiteralBase::GetR1U8AsString() const {
1994 CHECK(shape().IsArray());
1995 CHECK_EQ(shape().rank(), 1);
1996 CHECK_EQ(shape().element_type(), U8);
1997 return string(absl::bit_cast<const char*>(data<uint8>().data()),
1998 ShapeUtil::ElementsIn(shape()));
1999}
2000
2001void MutableBorrowingLiteral::CopyPieceSubtree(const Shape& shape,
2002 Piece* src_piece,

Callers 4

CreateFromProtoMethod · 0.80
TracingTagMethod · 0.80
ComputeAndCompareR1U8Method · 0.80
XLA_TEST_FFunction · 0.80

Calls 5

shapeFunction · 0.50
IsArrayMethod · 0.45
rankMethod · 0.45
element_typeMethod · 0.45
dataMethod · 0.45

Tested by 2

ComputeAndCompareR1U8Method · 0.64
XLA_TEST_FFunction · 0.64