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

Commit

Permalink
kill comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Jul 9, 2018
1 parent 776ebe8 commit 0a2aec0
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ object Basic {
shape = Some(Shape(shape(1), shape(2) * shape(3))))
val gram = Symbol.api.FullyConnected(data = Some(x), weight = Some(x),
no_bias = Some(true), num_hidden = shape(1))
// val x = Symbol.Reshape()()(Map("data" -> style.get(i),
// "shape" -> Shape(shape(1), shape(2) * shape(3))))
// // use fully connected to quickly do dot(x, x^T)
// val gram = Symbol.FullyConnected()()(Map("data" -> x, "weight" -> x,
// "no_bias" -> true, "num_hidden" -> shape(1)))
gramList = gramList :+ gram
gradScale = gradScale :+ (shape(1) * shape(2) * shape(3) * shape(1))
}
Expand All @@ -92,11 +87,9 @@ object Basic {
gramLoss = gramLoss :+ Symbol.api.sum(Some(
Symbol.api.square(Some(gvar - gram.get(i)))
))
// gramLoss = gramLoss :+ Symbol.sum()(Symbol.square()(gvar - gram.get(i))())()
}
val cvar = Symbol.Variable("target_content")
val contentLoss = Symbol.api.sum(Some(Symbol.api.square(Some(cvar - content))))
// val contentLoss = Symbol.sum()(Symbol.square()(cvar - content)())()
(Symbol.Group(gramLoss: _*), contentLoss)
}

Expand Down

0 comments on commit 0a2aec0

Please sign in to comment.