Revision 7393cfbb6d91a4d68aac1f59960a35561b22c422 authored by mareynolds on 16 January 2018, 14:13:07 UTC, committed by Diego de Las Casas on 29 January 2018, 16:56:19 UTC
This fixeds the following inconsistency: ``` with tf.Graph().as_default() as graph: input = tf.constant(np.random.randn(16, 784)) lin = snt.Linear(output_size=256) output = lin(input) print(lin.get_variables()) # prints tuple of 2 variables print(lin.get_variables()) # prints empty tuple, as technically we are in a different Graph. ``` Also added a .graph readonly property to AbstractModule. PiperOrigin-RevId: 182044744
1 parent 7bdd40c
File | Mode | Size |
---|---|---|
docs | ||
images | ||
sonnet | ||
.gitignore | -rw-r--r-- | 37 bytes |
.gitmodules | -rw-r--r-- | 0 bytes |
BUILD | -rw-r--r-- | 1.2 KB |
CHANGES.md | -rw-r--r-- | 8.0 KB |
CONTRIBUTING.md | -rw-r--r-- | 1.7 KB |
LICENSE | -rw-r--r-- | 11.1 KB |
MANIFEST.in | -rw-r--r-- | 102 bytes |
README.md | -rw-r--r-- | 1.6 KB |
WORKSPACE | -rw-r--r-- | 144 bytes |
install.sh | -rwxr-xr-x | 1.7 KB |
setup.py.tmpl | -rw-r--r-- | 3.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...