def block(layers, filters): all_filters = sorted({ search_space_utils.scale_filters(filters, multiplier, base=8) for multiplier in block_filters_multipliers }) return basic_specs.Block(layers=layers, filters=choose_filters(all_filters))
def _make_single_layer_model(layer): return basic_specs.ConvTowerSpec(blocks=[ basic_specs.Block(layers=[layer], filters=32), ], filters_base=8)