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

Commit

Permalink
[Scala] hide _move_var _move_mean _beta _gamma for visualization (#6555)
Browse files Browse the repository at this point in the history
* [Scala] hide _move_var _move_mean _beta _gamma for visualization

* fix code style
  • Loading branch information
Ldpe2G authored and piiswrong committed Jun 3, 2017
1 parent 13c1463 commit 673a6db
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ object Visualization {

// Internal helper to figure out if node should be hidden with hide_weights
def looksLikeWeight(name: String): Boolean = {
if (name.endsWith("_weight") || name.endsWith("_bias")) true
else false
if (name.endsWith("_weight") || name.endsWith("_bias")
|| name.endsWith("_beta") || name.endsWith("_gamma")
|| name.endsWith("_moving_var") || name.endsWith("_moving_mean")) { true } else { false }
}

// make nodes
Expand Down

0 comments on commit 673a6db

Please sign in to comment.