Commit 1c28abeb authored by mtjvc's avatar mtjvc
Browse files

comment out gpu lines

parent 7c4dea9f
...@@ -46,17 +46,17 @@ ...@@ -46,17 +46,17 @@
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
tf.config.list_physical_devices('GPU') #tf.config.list_physical_devices('GPU')
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True) #tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True)
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
......
...@@ -52,17 +52,17 @@ ...@@ -52,17 +52,17 @@
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
tf.config.list_physical_devices('GPU') #tf.config.list_physical_devices('GPU')
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True) #tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True)
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
## Data ## Data
......
...@@ -50,17 +50,17 @@ ...@@ -50,17 +50,17 @@
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
tf.config.list_physical_devices('GPU') #tf.config.list_physical_devices('GPU')
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True) #tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True)
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
## Data ## Data
......
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
from dcgan import DCGAN from dcgan import DCGAN
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True) #tf.config.experimental.set_memory_growth(tf.config.list_physical_devices('GPU')[0], True)
from tensorflow.keras.layers import Input, Dense, Reshape, Flatten, Dropout, BatchNormalization, Activation, ZeroPadding2D from tensorflow.keras.layers import Input, Dense, Reshape, Flatten, Dropout, BatchNormalization, Activation, ZeroPadding2D
from tensorflow.keras.layers import LeakyReLU, multiply, Embedding, UpSampling2D, Conv2D from tensorflow.keras.layers import LeakyReLU, multiply, Embedding, UpSampling2D, Conv2D
from tensorflow.keras.models import Sequential, Model from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.optimizers import Adam from tensorflow.keras.optimizers import Adam
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment