Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Intelligent-Computing-Lab-Panda/NDA_SNN
/ forward
Method
forward
models/layers.py:37–40 ·
view source on GitHub ↗
(ctx, input)
Source
from the content-addressed store, hash-verified
35
class
ZIF(torch.autograd.Function):
36
@staticmethod
37
def
forward(ctx, input):
38
out = (input >= 0).float()
39
ctx.save_for_backward(input)
40
return
out
41
42
@staticmethod
43
def
backward(ctx, grad_output):
Callers
1
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected