Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #327 from gnes-ai/fix-doc-1
Browse files Browse the repository at this point in the history
refactor(flow): flow is now a trainable base
  • Loading branch information
mergify[bot] authored Oct 15, 2019
2 parents 0ac92e4 + 166698c commit 2d398c1
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 172 deletions.
2 changes: 1 addition & 1 deletion gnes/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def register_class(cls):
# print('reg class: %s' % cls.__name__)
cls.__init__ = TrainableType._store_init_kwargs(cls.__init__)
if os.environ.get('GNES_PROFILING', False):
for f_name in ['train', 'encode', 'add', 'query']:
for f_name in ['train', 'encode', 'add', 'query', 'index']:
if getattr(cls, f_name, None):
setattr(cls, f_name, profiling(getattr(cls, f_name)))

Expand Down
Loading

0 comments on commit 2d398c1

Please sign in to comment.