tf.contrib.framework.get_name_scope
Stay organized with collections
Save and categorize content based on your preferences.
Returns the current name scope of the default graph.
tf.contrib.framework.get_name_scope()
For example:
with tf.name_scope('scope1'):
with tf.name_scope('scope2'):
print(tf.contrib.framework.get_name_scope())
would print the string scope1/scope2
.
Returns |
A string representing the current name scope.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.framework.get_name_scope\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/framework/python/ops/ops.py#L58-L73) |\n\nReturns the current name scope of the default graph. \n\n tf.contrib.framework.get_name_scope()\n\n#### For example:\n\n with tf.name_scope('scope1'):\n with tf.name_scope('scope2'):\n print(tf.contrib.framework.get_name_scope())\n\nwould print the string `scope1/scope2`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A string representing the current name scope. ||\n\n\u003cbr /\u003e"]]