tf.contrib.graph_editor.op_type()

tf.contrib.graph_editor.op_type(op_types, op=None)

Check if an op is of the given type.

Args:
  • 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.

doc_TensorFlow
2016-10-14 13:05:06
Comments
Leave a Comment

Please login to continue.