Skip to content

Instantly share code, notes, and snippets.

@fchollet
Created May 15, 2019 18:03
Show Gist options
  • Save fchollet/9e361d1fe9046b512a2f3e0d31382a96 to your computer and use it in GitHub Desktop.
Save fchollet/9e361d1fe9046b512a2f3e0d31382a96 to your computer and use it in GitHub Desktop.
class ResidualLSTMCell(LSTMCell):
def call(self, inputs, states, **kwargs):
outputs, states = super(ResidualLSTMCell, self).call(inputs, states)
outputs += inputs
return outputs
@qlzh727
Copy link

qlzh727 commented May 15, 2019

should be "return outputs, states"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment