MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / sequence_scale_offset

Function sequence_scale_offset

netdissect/__main__.py:383–385  ·  view source on GitHub ↗

Returns (yscale, yoffset), (xscale, xoffset) given a list of modules

(modulelist)

Source from the content-addressed store, hash-verified

381 return zip(*result)
382
383def sequence_scale_offset(modulelist):
384 '''Returns (yscale, yoffset), (xscale, xoffset) given a list of modules'''
385 return tuple(dilation_scale_offset(d) for d in dilations(modulelist))
386
387
388def strfloat(s):

Callers 1

add_scale_offset_infoFunction · 0.85

Calls 2

dilation_scale_offsetFunction · 0.85
dilationsFunction · 0.70

Tested by

no test coverage detected