Nn/a At Master · Torch/nn - GitHub

Skip to content Dismiss alert {{ message }} / nn Public
  • Notifications You must be signed in to change notification settings
  • Fork 964
  • Star 1.4k
  • Code
  • Issues 157
  • Pull requests 16
  • Actions
  • Projects
  • Wiki
  • Security
  • Insights
Additional navigation options

Files

 master

Breadcrumbs

  1. nn
Tanh.luaBlameBlame

Latest commit

 

History

History19 lines (17 loc) · 418 Bytes master
  1. nn
Tanh.luaTop

File metadata and controls

  • Code
  • Blame
19 lines (17 loc) · 418 BytesRaw12345678910111213141516171819local Tanh = torch.class('nn.Tanh', 'nn.Module') function Tanh:updateOutput(input) input.THNN.Tanh_updateOutput( input:cdata(), self.output:cdata() ) return self.outputend function Tanh:updateGradInput(input, gradOutput) input.THNN.Tanh_updateGradInput( input:cdata(), gradOutput:cdata(), self.gradInput:cdata(), self.output:cdata() ) return self.gradInputend You can’t perform that action at this time.

Từ khóa » Nn Tanh