(arch_def)
return ret
Get all stages except the last one
Get all stages except the last one
Get all stages except the last one
def _get_trunk_cfg(arch_def):
    """ Get all stages except the last one """
    num_stages = mbuilder.get_num_stages(arch_def)
    trunk_stages = arch_def.get("backbone", range(num_stages - 1))
    ret = mbuilder.get_blocks(arch_def, stage_indices=trunk_stages)
    return ret
def _get_trunk_cfg ( arch_def ) : num_stages = mbuilder . get_num_stages ( arch_def ) trunk_stages = arch_def . get ( "backbone" , range ( num_stages - 1 ) ) ret = mbuilder . get_blocks ( arch_def , stage_indices = trunk_stages ) return ret