Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add class
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiBapchya committed Apr 12, 2020
1 parent 44afbd2 commit 342e80a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/mxnet/ndarray_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

from .base import build_param_doc as _build_param_doc

class NDArrayDoc(object):
"""The basic class"""
pass

def _build_doc(func_name,
desc,
arg_names,
Expand Down
9 changes: 9 additions & 0 deletions python/mxnet/symbol_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@
import re as _re
from .base import build_param_doc as _build_param_doc

class SymbolDoc(object):
"""The base class for attaching doc to operators."""

@staticmethod
def get_output_shape(sym, **input_shapes):
"""Get user friendly information of the output shapes."""
_, s_outputs, _ = sym.infer_shape(**input_shapes)
return dict(zip(sym.list_outputs(), s_outputs))

def _build_doc(func_name,
desc,
arg_names,
Expand Down

0 comments on commit 342e80a

Please sign in to comment.