Skip to content

Commit cdc2424

Browse files
committed
update test
1 parent 0cf40ca commit cdc2424

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/tensorgraph_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def train(n_exp, h, w, c, nclass, batch_size=100, tgmodel=True):
149149
ttl_train_loss /= n_exp
150150
print('epoch {}, train loss {}'.format(epoch, ttl_train_loss))
151151

152-
153-
if __name__ == '__main__':
152+
def test_models():
154153
train(n_exp=10, h=20, w=20, c=5, nclass=2, batch_size=1, tgmodel=False)
155154
train(n_exp=10, h=20, w=20, c=5, nclass=2, batch_size=1, tgmodel=True)
155+
156+
if __name__ == '__main__':

0 commit comments

Comments
 (0)