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

Method PopulateR1

tensorflow/compiler/xla/literal.cc:562–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void MutableLiteralBase::PopulateR1(const tensorflow::core::Bitmap& values) {
563 CHECK(shape().IsArray());
564 CHECK_EQ(shape().rank(), 1);
565 CHECK_EQ(element_count(), values.bits());
566 CHECK_EQ(shape().element_type(), PRED);
567 for (int64 i = 0; i < static_cast<int64>(values.bits()); ++i) {
568 Set({i}, values.get(i));
569 }
570}
571
572Literal LiteralBase::Relayout(const Layout& new_layout,
573 const ShapeIndex& shape_index) const {

Callers

nothing calls this directly

Calls 7

bitsMethod · 0.80
shapeFunction · 0.50
SetFunction · 0.50
IsArrayMethod · 0.45
rankMethod · 0.45
element_typeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected