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

Commit

Permalink
Merge branch 'master' into fix-frontent
Browse files Browse the repository at this point in the history
  • Loading branch information
felix committed Oct 15, 2019
2 parents 474dedd + 2d398c1 commit 40fa503
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 40fa503

Please sign in to comment.