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

Function Unary

tensorflow/core/kernels/cwise_ops_test.cc:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28// type T with "num" elements.
29template <typename T>
30static Graph* Unary(const string& func, int num, DataType dtype) {
31 Graph* g = new Graph(OpRegistry::Global());
32 Tensor data(dtype, TensorShape({64, 64, num / (64 * 64)}));
33 CHECK_GT(data.NumElements(), 0);
34 data.flat<T>().setRandom();
35 test::graph::Unary(g, func, test::graph::Constant(g, data), 0);
36 return g;
37}
38
39const int kRows = 100000;
40

Callers 11

CubeWithMulSquareFunction · 0.70
BiasAddGradFunction · 0.70
LeftMethod · 0.70
RightMethod · 0.70
LeftMethod · 0.70
RightMethod · 0.70
LeftMethod · 0.70
RightMethod · 0.70
LeftMethod · 0.70
RightMethod · 0.70
TEST_FFunction · 0.50

Calls 3

ConstantFunction · 0.70
TensorShapeClass · 0.50
NumElementsMethod · 0.45

Tested by

no test coverage detected