MCPcopy Create free account
hub / github.com/CompVis/zigma / selective_scan_flop_jit

Function selective_scan_flop_jit

model_zigma.py:1173–1180  ·  view source on GitHub ↗
(inputs, outputs)

Source from the content-addressed store, hash-verified

1171
1172
1173def selective_scan_flop_jit(inputs, outputs):
1174 # print_jit_input_names(inputs)
1175 B, D, L = inputs[0].type().sizes()
1176 N = inputs[2].type().sizes()[1]
1177 flops = flops_selective_scan_fn(
1178 B=B, L=L, D=D, N=N, with_D=True, with_Z=False, with_Group=True
1179 )
1180 return flops
1181
1182
1183def flops(model, shape=(3, 32, 32)):

Callers

nothing calls this directly

Calls 1

flops_selective_scan_fnFunction · 0.85

Tested by

no test coverage detected