Skip to content

Commit

Permalink
Fix bug: MaxPool op is not listed in the supported ops
Browse files Browse the repository at this point in the history
  • Loading branch information
dboyliao committed Dec 16, 2020
1 parent fe8abc4 commit fa8cdb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def get_construct_snippet(self, op_var_name):


@OperatorFactory.register
class _MaxPoolOperator(_GenericMaxOperator, _PoolingOperatorMixin):
class _MaxPoolOperator(_GenericMaxPoolOperator, _PoolingOperatorMixin):
namespaces = ('ReferenceOperators',)

def get_declare_snippet(self, op_var_name, with_const_params=True):
Expand Down
5 changes: 5 additions & 0 deletions utensor_cgen/cli/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def list_support_ops(target, config):
backend = BackendManager.get_backend(target).from_file(config)
else:
backend = BackendManager.get_backend(target)({})
click.secho(
f"Supported ops in {target!r}:",
fg="green",
bold=True,
)
click.secho(
pformat(backend.support_ops),
fg='white',
Expand Down

0 comments on commit fa8cdb4

Please sign in to comment.