Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
92
xla::LiteralProto ScalarLiteral() {
93
auto scalar = xla::LiteralUtil::CreateR0<float>(12.0f);
94
return scalar.ToProto();
95
}
96
97
xla::LiteralProto NestedTuple() {
98
auto array = xla::LiteralUtil::CreateR1<float>({1.0f, 3.0f});
Callers
1
TEST
Function · 0.85
Calls
1
ToProto
Method · 0.45
Tested by
no test coverage detected