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

Function Iota

tensorflow/core/kernels/training_ops_test.cc:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static Node* Iota(Graph* g, int n) {
77 Tensor data(DT_INT32, TensorShape({n}));
78 int32* base = data.flat<int32>().data();
79 for (int i = 0; i < n; ++i) base[i] = i;
80 return test::graph::Constant(g, data);
81}
82
83static Node* Scalar(Graph* g, float val) {
84 Tensor data(DT_FLOAT, TensorShape({}));

Callers 1

SparseAdagradFunction · 0.70

Calls 3

ConstantFunction · 0.70
TensorShapeClass · 0.50
dataMethod · 0.45

Tested by

no test coverage detected