Skip to content

Commit

Permalink
fix names
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Mar 19, 2020
1 parent 021b85a commit b6f0efd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/tvm/relay/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _impl(inputs, input_types):
return _op.nn.relu(data)
return _impl

def _adaptive_avg_2d():
def _adaptive_avg_pool_2d():
def _impl(inputs, input_types):
data = inputs[0]
output_size = _infer_shape(inputs[1])
Expand All @@ -178,7 +178,7 @@ def func(x):

return _impl

def _adaptive_max_2d():
def _adaptive_max_pool_2d():
def _impl(inputs, input_types):
data = inputs[0]
output_size = _infer_shape(inputs[1])
Expand All @@ -189,7 +189,7 @@ def _impl(inputs, input_types):
output_size=output_size), None
return _impl

def _adaptive_max_3d():
def _adaptive_max_pool_3d():
def _impl(inputs, input_types):
data = inputs[0]
output_size = _infer_shape(inputs[1])
Expand All @@ -198,7 +198,7 @@ def _impl(inputs, input_types):

return _impl

def _adaptive_avg_3d():
def _adaptive_avg_pool_3d():
def _impl(inputs, input_types):
data = inputs[0]
output_size = _infer_shape(inputs[1])
Expand Down Expand Up @@ -859,8 +859,8 @@ def _wrap_const(c):
"aten::select" : _select(),
"aten::relu" : _relu(),
"aten::relu_" : _relu(),
"aten::adaptive_avg_pool2d" : _adaptive_avg_2d(),
"aten::adaptive_max_pool2d" : _adaptive_max_2d(),
"aten::adaptive_avg_pool2d" : _adaptive_avg_pool_2d(),
"aten::adaptive_max_pool2d" : _adaptive_max_pool_2d(),
"aten::max_pool2d" : _maxpool_2d(),
"aten::max_pool2d_with_indices" : _maxpool_2d(),
"aten::hardtanh" : _hardtanh(),
Expand Down Expand Up @@ -910,8 +910,8 @@ def _wrap_const(c):
"aten::Float" : _Float(),
"aten::neg" : _neg(),
"aten::tanh" : _tanh(),
"aten::adaptive_avg_pool3d" : _adaptive_avg_3d(),
"aten::adaptive_max_pool3d" : _adaptive_max_3d()
"aten::adaptive_avg_pool3d" : _adaptive_avg_pool_3d(),
"aten::adaptive_max_pool3d" : _adaptive_max_pool_3d()
}


Expand Down

0 comments on commit b6f0efd

Please sign in to comment.