MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / op_linear

Function op_linear

k_diffusion/models/flops.py:40–41  ·  view source on GitHub ↗
(x, weight)

Source from the content-addressed store, hash-verified

38
39
40def op_linear(x, weight):
41 return math.prod(x) * weight[0]
42
43
44def op_attention(q, k, v):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected