Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
selous123 committed Aug 10, 2017
1 parent 7aa48c1 commit 82f4bcf
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
95 changes: 95 additions & 0 deletions Generative Adversarial Nets/Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"\n",
"def GANsModel(object):\n",
" def __init__(self):\n",
" \n",
" \n",
" \n",
" self.build_model()\n",
" pass\n",
" \n",
" def build_model(self):\n",
" pass\n",
" \n",
" def training(self):\n",
" pass\n",
" \n",
" def discriminator(self):\n",
" pass\n",
" \n",
" def generator(self):\n",
" pass\n",
" \n",
" \n",
" \n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1.0"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import tensorflow as tf\n",
"\n",
"# with tf.variable_scope(\"var\") as scope:\n",
"# v = tf.get_variable(\"t\",initializer=1)\n",
"# scope.reuse_variables()\n",
"# v2 = tf.get_variable(\"t\",initializer=1)\n",
"\n",
"with tf.variable_scope(\"foo\") as scope:\n",
" v = tf.get_variable(\"v\",initializer=1.0)\n",
" scope.reuse_variables()\n",
" v1 = tf.get_variable(\"v\",initializer=1.0)\n",
" \n",
"sess = tf.Session()\n",
"init = tf.global_variables_initializer()\n",
"sess.run(init)\n",
"\n",
"\n",
"sess.run(v)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.13"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 82f4bcf

Please sign in to comment.