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

Method CreateR1

tensorflow/compiler/xla/literal_util.cc:322–328  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

320}
321
322/* static */ Literal LiteralUtil::CreateR1(
323 const tensorflow::core::Bitmap& values) {
324 Literal literal(
325 ShapeUtil::MakeShape(PRED, {static_cast<int64>(values.bits())}));
326 literal.PopulateR1(values);
327 return literal;
328}
329
330/* static */ Literal LiteralUtil::CreateR1U8(absl::string_view value) {
331 Literal literal(ShapeUtil::MakeShape(U8, {static_cast<int64>(value.size())}));

Callers

nothing calls this directly

Calls 3

MakeShapeFunction · 0.85
bitsMethod · 0.80
PopulateR1Method · 0.60

Tested by

no test coverage detected