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

Function Ones

tensorflow/core/kernels/sdca_ops_test.cc:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73Node* Zeros(Graph* const g, const int n) { return Zeros(g, TensorShape({n})); }
74
75Node* Ones(Graph* const g, const int n) {
76 Tensor data(DT_FLOAT, TensorShape({n}));
77 test::FillFn<float>(&data, [](const int i) { return 1.0f; });
78 return test::graph::Constant(g, data);
79}
80
81Node* SparseIndices(Graph* const g, const int sparse_features_per_group) {
82 Tensor data(DT_INT64, TensorShape({sparse_features_per_group}));

Callers 4

GetGraphsFunction · 0.70
ComputeMatrixMethod · 0.70
NodeStatsMethod · 0.50
CalculateWeightsAndGainsFunction · 0.50

Calls 2

ConstantFunction · 0.70
TensorShapeClass · 0.50

Tested by

no test coverage detected