MCPcopy Create free account
hub / github.com/boyiwei/alignment-attribution-code / add_batch_extra

Function add_batch_extra

lib/prune.py:775–779  ·  view source on GitHub ↗
(name, tar)

Source from the content-addressed store, hash-verified

773
774 # compute utility activation
775 def add_batch_extra(name, tar):
776 def tmp(_, inp, out):
777 wrapped_layers_extra[name].add_batch(inp[0].data, out.data, tar)
778
779 return tmp
780
781 for j in range(args.nsamples):
782 handles = []

Calls

no outgoing calls

Tested by

no test coverage detected