New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganization #54

Merged
merged 17 commits into from Sep 5, 2018

Revert some fast changes

  • Loading branch information...
Aditya Kusupati
Aditya Kusupati committed Aug 28, 2018
commit 1ad212062ce23657f0881236dc6693f2abaadc2e
@@ -286,9 +286,8 @@ def train(self, batchSize, totalEpochs, sess,
ihtDone = 1
maxTestAcc = -10000
header = '*' * 20
import time
for i in range(0, totalEpochs):
start = time.time()
print("\nEpoch Number: " + str(i), file=self.outFile)
if i % decayStep == 0 and i != 0:
@@ -344,9 +343,6 @@ def train(self, batchSize, totalEpochs, sess,
print("Train Loss: " + str(trainLoss / numIters) +
" Train Accuracy: " + str(trainAcc / numIters),
file=self.outFile)
end = time.time()
print("\nTime: " + str(end - start) + "\n")
continue
testData = Xtest.reshape((-1, self.timeSteps, self.inputDims))
@@ -12,7 +12,7 @@
from edgeml.graph.rnn import FastRNNCell
def main(M, N):
def main():
# Fixing seeds for reproducibility
tf.set_random_seed(42)
np.random.seed(42)
@@ -71,8 +71,7 @@ def main(M, N):
FastCell, X, Y, sW=sW, sU=sU,
learningRate=learningRate, outFile=outFile)
sess = tf.InteractiveSession(config=tf.ConfigProto(
intra_op_parallelism_threads=N, inter_op_parallelism_threads=M))
sess = tf.InteractiveSession()
sess.run(tf.global_variables_initializer())
FastCellTrainer.train(batchSize, totalEpochs, sess, Xtrain, Xtest,
@@ -81,6 +80,4 @@ def main(M, N):
if __name__ == '__main__':
M = 2
N = 4
main(M, N)
main()
ProTip! Use n and p to navigate between commits in a pull request.