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

Commit

Permalink
fix(encoder): fix error in cvae encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Larryjianfeng committed Jul 23, 2019
1 parent a4b883a commit ab6c88c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions gnes/encoder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
'HashEncoder': 'numeric.hash',
'BasePytorchEncoder': 'image.base',
'TFInceptionEncoder': 'image.inception',
'CVAEEncoder': 'image.cvae'
}

register_all_class(_cls2file_map, 'encoder')
2 changes: 1 addition & 1 deletion gnes/encoder/image/cvae.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, model_dir: str,

def post_init(self):
import tensorflow as tf
from .cave_cores.model import CVAE
from .cvae_cores.model import CVAE

self._model = CVAE(self.latent_dim)
self.inputs = tf.placeholder(tf.float32,
Expand Down
Empty file.

0 comments on commit ab6c88c

Please sign in to comment.