MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / count_relu

Function count_relu

PATH/helper/flops_helper.py:140–145  ·  view source on GitHub ↗
(m, x, y)

Source from the content-addressed store, hash-verified

138
139
140def count_relu(m, x, y):
141 x = x[0]
142 nelements = x.numel()
143 total_ops = nelements
144
145 m.total_ops = torch.Tensor([int(total_ops)])
146
147
148def count_softmax(m, x, y):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected