tf.contrib.graph_editor.op_type(op_types, op=None)
See the guide: Graph Editor (contrib) > Module: match
Check if an op is of the given type.
op_types
: tuple of strings containing the types to check against. For instance: ("Add", "Const")op
: the operation to check (or None). Returns: if op is not None, return True if the op is of the correct type. if op is None, return a lambda function which does the type checking.Defined in tensorflow/contrib/graph_editor/match.py
.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/graph_editor/op_type