Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Fix Capsule docs example and remove unused import (#434)
Browse files Browse the repository at this point in the history
* Fix docs error

* Remove unused import
  • Loading branch information
SriRangaTarun authored and gabrieldemarmiesse committed Feb 11, 2019
1 parent ab9d90b commit ad247c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion keras_contrib/layers/capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Capsule(Layer):
is generally used with the 'squash' activation function
(recommended). To use the squash activation function, do :
from keras_contrib import squash
from keras_contrib.activations import squash
capsule = Capsule(num_capsule=10,
dim_capsule=10,
Expand Down
1 change: 0 additions & 1 deletion tests/keras_contrib/layers/test_capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from keras_contrib.utils.test_utils import layer_test
from keras import backend as K
from keras_contrib import backend as KC
from keras_contrib.layers import capsule
from keras.models import Sequential

Expand Down

0 comments on commit ad247c5

Please sign in to comment.