Skip to content

Commit

Permalink
chore(docs): add note from get_framework
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Oct 8, 2021
1 parent 80b5a2a commit a589a01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion finetuner/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@


def get_framework(dnn_model: AnyDNN) -> str:
"""Return the framework that enpowers a DNN model
"""Return the framework that enpowers a DNN model.
.. note::
This is not a solid implementation. It is based on ``__module__`` name,
the key idea is to tell ``dnn_model`` without actually importing the
framework.
:param dnn_model: a DNN model
:return: `keras`, `torch`, `paddle` or ValueError
Expand Down

0 comments on commit a589a01

Please sign in to comment.