Skip to content

Commit

Permalink
add repr
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuwenyu committed Aug 24, 2021
1 parent b6b8311 commit 3bf998e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/paddle/vision/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,3 +1024,7 @@ def forward(self, input, boxes, boxes_num=None):
output_size=self._output_size,
spatial_scale=self._spatial_scale,
boxes_num=boxes_num)

def extra_repr(self):
main_str = 'output_size={_output_size}, spatial_scale={_spatial_scale}'
return main_str.format(**self.__dict__)

1 comment on commit 3bf998e

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍PR: #35094 Commit ID: 3bf998e contains failed CI.

Please sign in to comment.