View source on GitHub

Get the ops passing the given filter.

ops an object convertible to a list of tf.Operation.
positive_filter a function deciding where to keep an operation or not. If True, all the operations are returned.

A list of selected tf.Operation.

TypeError if ops cannot be converted to a list of tf.Operation.