<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/framework/ops.py#L5897-L5904) |

DEPRECATED. Same as name_scope above, just different argument order.

    @tf_contextlib.contextmanager
    tf.compat.v1.op_scope(
        values, name, default_name=None
    ) -> Iterator[Optional[str]]