Skip to content

Commit

Permalink
Merge pull request apache#2 from dato-code/fix_tests
Browse files Browse the repository at this point in the history
fix a few unittests
  • Loading branch information
Jay Gu committed Jan 5, 2016
2 parents 0799342 + 11b994c commit a312fd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/python/gpu/test_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_iter(data_dir):
logging.basicConfig(level=logging.DEBUG)

num_gpus = 1
data_dir = 's3://dmcl/mnist'
data_dir = 'data'

(train, val) = get_iter(data_dir)

Expand Down
9 changes: 6 additions & 3 deletions tests/python/gpu/test_operator_gpu.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import os
import sys
sys.path.insert(0, '../unittest')
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
sys.path.insert(0, os.path.join(curr_path, '..', 'unittest'))
print sys.path
from test_operator import *

if __name__ == '__main__':
test_softmax_with_shape((3,4), mx.gpu())
test_multi_softmax_with_shape((3,4,5), mx.gpu())
test_softmax_with_shape((3,4), mx.gpu())
test_multi_softmax_with_shape((3,4,5), mx.gpu())
2 changes: 0 additions & 2 deletions tests/python/train/test_conv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# pylint: skip-file
import sys
sys.path.insert(0, '../../python')
import mxnet as mx
import numpy as np
import os, pickle, gzip
Expand Down
2 changes: 1 addition & 1 deletion tests/python/train/test_mlp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pylint: skip-file
import mxnet as mx
import numpy as np
import os, sys
import os
import pickle as pickle
import logging
from common import get_data
Expand Down

0 comments on commit a312fd3

Please sign in to comment.