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

Function CubeWithMulSquare

tensorflow/core/kernels/cwise_ops_test.cc:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172Graph* CubeWithMulSquare(int num) {
173 Graph* g = new Graph(OpRegistry::Global());
174 Tensor lhs(DT_FLOAT, TensorShape({64, 64, num / (64 * 64)}));
175 lhs.flat<float>().setRandom();
176 auto* x = test::graph::Constant(g, lhs);
177 auto* inner = test::graph::Unary(g, "Square", x);
178 test::graph::Binary(g, "Mul", test::graph::Constant(g, lhs), inner);
179 return g;
180}
181
182#define BM_CUBE(DEVICE, Impl) \
183 void BM_##DEVICE##_Cube_##Impl(int iters, int num) { \

Callers

nothing calls this directly

Calls 4

ConstantFunction · 0.70
UnaryFunction · 0.70
TensorShapeClass · 0.50
BinaryFunction · 0.50

Tested by

no test coverage detected