Skip to content

Commit

Permalink
Clockwork layer update
Browse files Browse the repository at this point in the history
Removed unnecessary argument 'timing' from layer. Array 'timing' should always be initialized from initializer.
  • Loading branch information
julian121266 committed Nov 25, 2015
1 parent 36feec5 commit a39fcf2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions brainstorm/layers/clockwork_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@
StructureTemplate


def Clockwork(size, timing, activation='tanh', name=None):
def Clockwork(size, activation='tanh', name=None):
return ConstructionWrapper.create(ClockworkLayerImpl,
size=size,
timing=timing,
name=name,
activation=activation)


class ClockworkLayerImpl(Layer):
expected_inputs = {'default': StructureTemplate('T', 'B', '...')}
expected_kwargs = {'size', 'timing', 'activation'}
expected_kwargs = {'size', 'activation'}

computes_no_gradients_for = ['timing']

Expand Down

0 comments on commit a39fcf2

Please sign in to comment.