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

Method MutableBorrowingLiteral

tensorflow/compiler/xla/literal.cc:2031–2041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2029MutableLiteralBase::~MutableLiteralBase() {}
2030
2031MutableBorrowingLiteral::MutableBorrowingLiteral(
2032 const MutableBorrowingLiteral& literal)
2033 : MutableLiteralBase() {
2034 shape_ = absl::make_unique<Shape>(literal.shape());
2035 CHECK(LayoutUtil::HasLayout(*shape_));
2036
2037 root_piece_ = new Piece();
2038 root_piece_->set_subshape(shape_.get());
2039
2040 CopyPieceSubtree(*shape_, &literal.root_piece(), root_piece_);
2041}
2042
2043MutableBorrowingLiteral& MutableBorrowingLiteral::operator=(
2044 const MutableBorrowingLiteral& literal) {

Callers

nothing calls this directly

Calls 5

set_subshapeMethod · 0.80
shapeMethod · 0.45
getMethod · 0.45
IsTupleMethod · 0.45
set_bufferMethod · 0.45

Tested by

no test coverage detected