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

Method RowAsMatrix

tensorflow/core/kernels/sdca_internal.h:165–170  ·  view source on GitHub ↗

Returns a row slice as a 1 * F matrix, where F is the number of features.

Source from the content-addressed store, hash-verified

163
164 // Returns a row slice as a 1 * F matrix, where F is the number of features.
165 Eigen::TensorMap<Eigen::Tensor<const float, 2, Eigen::RowMajor>>
166 RowAsMatrix() const {
167 return Eigen::TensorMap<Eigen::Tensor<const float, 2, Eigen::RowMajor>>(
168 data_matrix.data() + row_index * data_matrix.dimension(1), 1,
169 data_matrix.dimension(1));
170 }
171
172 const TTypes<float>::ConstMatrix data_matrix;
173 const int64 row_index;

Callers 2

Calls 2

dataMethod · 0.45
dimensionMethod · 0.45

Tested by

no test coverage detected