megengine.utils.network.NodeFilterName.not_type

NodeFilterName.not_type(node_type)

移除过滤器中所有指定类型的计算节点。

参数

node_type – 节点类型

返回

返回一个新的 NodeFilter 对象,该对象将在迭代时检查类型,不满足要求则报错。