megengine.utils.network.NodeFilterType.as_unique

NodeFilterType.as_unique()

断言过滤器中只包含单个元素,并返回该元素。

返回

.GraphNodeBase: the unique node

返回类型

class

引发

ValueError if this iterator does not yield a unique node