MCPcopy
hub / github.com/davidsandberg/facenet / max_pool

Method max_pool

src/align/detect_face.py:175–181  ·  view source on GitHub ↗
(self, inp, k_h, k_w, s_h, s_w, name, padding='SAME')

Source from the content-addressed store, hash-verified

173
174 @layer
175 def max_pool(self, inp, k_h, k_w, s_h, s_w, name, padding='SAME'):
176 self.validate_padding(padding)
177 return tf.nn.max_pool(inp,
178 ksize=[1, k_h, k_w, 1],
179 strides=[1, s_h, s_w, 1],
180 padding=padding,
181 name=name)
182
183 @layer
184 def fc(self, inp, num_out, name, relu=True):

Callers 7

mpoolFunction · 0.80
modelFunction · 0.80
loadFunction · 0.80
modelFunction · 0.80
setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80

Calls 1

validate_paddingMethod · 0.95

Tested by

no test coverage detected