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

Class SpatialMaxPooling

tensorflow/core/kernels/maxpooling_op.h:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template <typename Device, typename T>
30struct SpatialMaxPooling {
31 void operator()(const Device& d, typename TTypes<T, 4>::Tensor output,
32 typename TTypes<T, 4>::ConstTensor input, int window_rows,
33 int window_cols, int row_stride, int col_stride,
34 const Eigen::PaddingType& padding) {
35 // Because we swap the layout, we swap the row/cols as well
36 output.swap_layout().device(d) =
37 Eigen::SpatialMaxPooling(input.swap_layout(), window_cols, window_rows,
38 col_stride, row_stride, padding);
39 }
40};
41
42template <typename Device>
43struct SpatialMaxPooling<Device, qint8> {

Callers 2

operator()Method · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68