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

Function _same

tensorflow/python/framework/common_shapes.py:146–150  ·  view source on GitHub ↗
(in_dim, s_dim)

Source from the content-addressed store, hash-verified

144 elif padding_type == b"SAME":
145
146 def _same(in_dim, s_dim):
147 if in_dim is not None:
148 return (in_dim + s_dim - 1) // s_dim
149 else:
150 return None
151
152 output_size = [_same(in_dim, s_dim)
153 for in_dim, s_dim in zip(input_size, strides)]

Callers 1

get_conv_output_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected