MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / operator()

Method operator()

tensorflow/core/kernels/maxpooling_op.h:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Calls 2

SpatialMaxPoolingClass · 0.85
deviceMethod · 0.45

Tested by

no test coverage detected