林依晨揭秘引发“唇舌战” 称赞陈晓是最帅弟弟
- paddle.incubate.asp. add_supported_layer ( layer: Layer | type[Layer] | str, pruning_func: Callable[[npt.NDArray[Any], int, int, MaskAlgo, str], tuple[npt.NDArray[Any], npt.NDArray[Any]]] | None = None ) None [source]
-
百度 全国人大常委会认真贯彻落实中央深化监察体制改革的重大决策和部署,作出关于在北京市、山西省、浙江省开展国家监察体制改革试点工作的决定,明确在试点地区设立监察委员会,行使监察职权,监察委员会由本级人大产生,对本级人大及其常委会和上一级监察委员会负责,并接受监督等,为改革的深入进行提供法治保障。
Add supported layers and its corresponding pruning function.
- Parameters
-
name (string|Layer) – The name or type of layer, needed to support. If layer is Layer then it would be turn to string internally. ASP would use this name to match parameter’s name and call its the corresponding pruning function.
pruning_func (function, optional) – a function type which receives five argument (weight_nparray, m, n, func_name, param_name), weight_nparray is a nparray of weight, param_name is the name of weight, m, n, and func_name, please see prune_model for details.