-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Change `keras` to `tf.keras` 2. Change `K.*` to `tf.*`. In TensorFlow 2, they actually call the same lower-level functions. 3. Change `K.batch_dot` to `tf.matmul` in class CapsuleLayer. The batch_dot changed its behavior in version 2.3 (or earlier). But I find `tf.matmul` is sufficient to implement the class CapsuleLayer.
- Loading branch information
XifengGuo
committed
May 19, 2020
1 parent
923809b
commit 9d7e641
Showing
3 changed files
with
70 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters