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

Function CubeWithTwoMuls

tensorflow/core/kernels/cwise_ops_test.cc:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162Graph* CubeWithTwoMuls(int num) {
163 Graph* g = new Graph(OpRegistry::Global());
164 Tensor lhs(DT_FLOAT, TensorShape({64, 64, num / (64 * 64)}));
165 lhs.flat<float>().setRandom();
166 auto* x = test::graph::Constant(g, lhs);
167 auto* inner = test::graph::Binary(g, "Mul", x, x);
168 test::graph::Binary(g, "Mul", x, inner);
169 return g;
170}
171
172Graph* CubeWithMulSquare(int num) {
173 Graph* g = new Graph(OpRegistry::Global());

Callers

nothing calls this directly

Calls 3

ConstantFunction · 0.70
TensorShapeClass · 0.50
BinaryFunction · 0.50

Tested by

no test coverage detected