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

Function ScalarLiteral

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

Source from the content-addressed store, hash-verified

90}
91
92xla::LiteralProto ScalarLiteral() {
93 auto scalar = xla::LiteralUtil::CreateR0<float>(12.0f);
94 return scalar.ToProto();
95}
96
97xla::LiteralProto NestedTuple() {
98 auto array = xla::LiteralUtil::CreateR1<float>({1.0f, 3.0f});

Callers 1

TESTFunction · 0.85

Calls 1

ToProtoMethod · 0.45

Tested by

no test coverage detected