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

Function BasedTwoElementTuple

tensorflow/compiler/xrt/tests/raw_api_test.cc:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84xla::LiteralProto BasedTwoElementTuple(float base) {
85 auto array = xla::LiteralUtil::CreateR1<float>({base, base + 1});
86 auto matrix = xla::LiteralUtil::CreateR2<float>(
87 {{base + 2, base + 3}, {base + 4, base + 5}});
88 auto tuple = xla::LiteralUtil::MakeTuple({&array, &matrix});
89 return tuple.ToProto();
90}
91
92xla::LiteralProto ScalarLiteral() {
93 auto scalar = xla::LiteralUtil::CreateR0<float>(12.0f);

Callers 1

TESTFunction · 0.85

Calls 1

ToProtoMethod · 0.45

Tested by

no test coverage detected