Skip to content

Commit

Permalink
-Added DataGenerator, Graph, and Network classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-Good committed Apr 29, 2019
1 parent f762987 commit 5d4a94f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mnistazure/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, height, width, channels, labels, seed=0):
self.height = height
self.width = width
self.channels = channels
self.classes = labels
self.labels = labels
self.seed = seed

def inference(self, input_layer, is_training):
Expand Down Expand Up @@ -64,6 +64,9 @@ def inference(self, input_layer, is_training):
predictions = {'classes': tf.argmax(input=logits, axis=1),
'probabilities': tf.nn.softmax(logits, name="softmax_tensor")}

# Check output dimensions
assert net.shape[1] == self.labels

return logits, predictions

def create_placeholders(self):
Expand Down

0 comments on commit 5d4a94f

Please sign in to comment.