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

Function SparseFeatureIndices

tensorflow/core/kernels/sdca_ops_test.cc:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95Node* SparseFeatureIndices(Graph* const g, const int sparse_features_per_group,
96 const int num_examples) {
97 const int x_size = num_examples * 4;
98 Tensor data(DT_INT64, TensorShape({x_size}));
99 test::FillFn<int64>(
100 &data, [&](const int i) { return i % sparse_features_per_group; });
101 return test::graph::Constant(g, data);
102}
103
104Node* RandomZeroOrOne(Graph* const g, const int n) {
105 Tensor data(DT_FLOAT, TensorShape({n}));

Callers 1

GetGraphsFunction · 0.85

Calls 2

ConstantFunction · 0.70
TensorShapeClass · 0.50

Tested by

no test coverage detected