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

Function OnePlusTwo

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

Source from the content-addressed store, hash-verified

167}
168
169xla::XlaComputation OnePlusTwo() {
170 xla::XlaBuilder builder("OnePlusTwo");
171 auto c0 = xla::ConstantR0(&builder, 1.0f);
172 auto c1 = xla::ConstantR0(&builder, 2.0f);
173 xla::Add(c0, c1);
174 return builder.Build().ValueOrDie();
175}
176
177xla::XlaComputation AddAndScale() {
178 xla::XlaBuilder builder("AddAndScale");

Callers 1

TESTFunction · 0.85

Calls 3

ConstantR0Function · 0.85
AddClass · 0.50
BuildMethod · 0.45

Tested by

no test coverage detected