SPC q q- quitSPC w /- split window verticallySPC w- - split window horizontallySPC 1- switch to window 1SPC 2- switch to window 2SPC w c- delete current windowSPC TAB- switch to previous bufferSPC b b- switch buffers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Working example for my blog post at: | |
| # https://danijar.github.io/structuring-your-tensorflow-models | |
| import functools | |
| import tensorflow as tf | |
| from tensorflow.examples.tutorials.mnist import input_data | |
| def doublewrap(function): | |
| """ | |
| A decorator decorator, allowing to use the decorator to be used without |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| import numpy as np | |
| FC_SIZE = 1024 | |
| DTYPE = tf.float32 | |
| def _weight_variable(name, shape): | |
| return tf.get_variable(name, shape, DTYPE, tf.truncated_normal_initializer(stddev=0.1)) |