Skip to content

Commit

Permalink
fix: refactoring codes
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-wang committed May 6, 2020
1 parent 0048f34 commit c4fe17d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jina/executors/encoders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class BaseCVPaddlehubEncoder(BasePaddleExecutor, BaseNumericEncoder):
"""
:class:`BaseCVPaddlehubEncoder` implements the common parts for :class:`ImagePaddlehubEncoder` and
:class:`VideoPaddlehubEncoder`.
..warning::
:class:`BaseCVPaddlehubEncoder` is not intented to be used to do the real encoding.
"""
def __init__(self,
model_name: str,
Expand Down Expand Up @@ -144,6 +147,12 @@ def close(self):


class BaseTorchEncoder(BaseTorchExecutor):
""""
:class:`BaseTorchEncoder` implements the common part for :class:`ImageTorchEncoder` and :class:`VideoTorchEncoder`.
..warning::
:class:`BaseTorchEncoder` is not intented to be used to do the real encoding.
"""
def __init__(self,
model_name: str,
channel_axis: int = 1,
Expand Down

0 comments on commit c4fe17d

Please sign in to comment.