Skip to content

Commit

Permalink
MO DeformableConv: fix a set of attributes (#6806)
Browse files Browse the repository at this point in the history
* MO DeformableConv: fix a set of attributes

* codestyle

* resolve review comments

* resolve review comments
  • Loading branch information
itikhono authored Jul 29, 2021
1 parent 233bc54 commit 6673a90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion model-optimizer/mo/ops/deformable_convolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ def __init__(self, graph: Graph, attrs: dict):
def backend_attrs(self):
# the same attributes as in a regular convolution and additional attributes 'deformable_group', 'group'
# and 'bilinear_interpolation_pad'
return Convolution(self.graph, {}).backend_attrs() + ['deformable_group', 'group', 'bilinear_interpolation_pad']
attrs = Convolution(self.graph, {}).backend_attrs() + ['deformable_group', 'group']
if self.get_opset() == 'opset8':
attrs.append('bilinear_interpolation_pad')
return attrs

0 comments on commit 6673a90

Please sign in to comment.