{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/8420","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/8420/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/8420/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/8420/events","html_url":"https://github.com/numpy/numpy/issues/8420","id":197522260,"number":8420,"title":"cannot pass theano Unit Test by using the numpy code 12/26/2016 on cpu","user":{"login":"KevinYuk","id":20220399,"avatar_url":"https://avatars.githubusercontent.com/u/20220399?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinYuk","html_url":"https://github.com/KevinYuk","followers_url":"https://api.github.com/users/KevinYuk/followers","following_url":"https://api.github.com/users/KevinYuk/following{/other_user}","gists_url":"https://api.github.com/users/KevinYuk/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinYuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinYuk/subscriptions","organizations_url":"https://api.github.com/users/KevinYuk/orgs","repos_url":"https://api.github.com/users/KevinYuk/repos","events_url":"https://api.github.com/users/KevinYuk/events{/privacy}","received_events_url":"https://api.github.com/users/KevinYuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-26T01:28:23Z","updated_at":"2016-12-26T04:59:26Z","closed_at":null,"body":"- Recreate steps:\r\n1. install official theano from [master branch](https://github.com/Theano/Theano.git).\r\n2. Set the .theanorc configuration as below:\r\n```\r\n[global]\r\ndevice = cpu\r\nfloatX = float32\r\ncxx = g++\r\nmode = FAST_RUN\r\nopenmp = True\r\nopenmp_elemwise_minsize = 10\r\nallow_gc = False\r\n\r\n[gcc]\r\ncxxflags = -fopenmp -O3 -opt-prefetch=2\r\n[blas]\r\nldflags=-L/home/yukun/.local/lib -lopenblas\r\n```\r\n3. install officail numpy from [master branch](https://github.com/numpy/numpy.git)\r\n3. run **nosetests** in theano main DIR. (This will take a long time, more than 2 hours. )\r\n4. You can find **The whole theano nosetests result** is at the end of the issue description.\r\n\r\n- Important notes(can pass theano UT by using numpy release version):\r\n**CAN PASS** theano Unit Test by using numpy release versoin [numpy-1.11.2rc1](https://pypi.python.org/pypi/numpy).\r\n\r\n\r\n\r\n- For save your time, you guys can also do quick verification to check the theano UT ERROR and FAIL by below methods.(Surely, it's only include partial error report):\r\nQuick verification method:\r\n```\r\n[yukun@xcatmn theano]$ nosetests -v theano/sparse/tests/test_sp2.py\r\ntest_infer_shape (theano.sparse.tests.test_sp2.BinomialTester) ... ERROR\r\ntest_op (theano.sparse.tests.test_sp2.BinomialTester) ... ERROR\r\ntest_infer_shape (theano.sparse.tests.test_sp2.MultinomialTester) ... ok\r\ntest_op (theano.sparse.tests.test_sp2.MultinomialTester) ... ok\r\ntest_infer_shape (theano.sparse.tests.test_sp2.PoissonTester) ... ok\r\ntest_op (theano.sparse.tests.test_sp2.PoissonTester) ... ok\r\n\r\n======================================================================\r\nERROR: test_infer_shape (theano.sparse.tests.test_sp2.BinomialTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 101, in test_infer_shape\r\n    self.op_class)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tests/unittest_tools.py\", line 251, in _compile_and_check\r\n    numeric_outputs = outputs_function(*numeric_inputs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/op.py\", line 905, in rval\r\n    r = p(n, [x[0] for x in i], o)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/sandbox/sp2.py\", line 126, in perform\r\n    binomial = numpy.random.binomial(n, p, size=shape)\r\n  File \"mtrand.pyx\", line 3764, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:28820)\r\nTypeError: Cannot cast array data from dtype('float32') to dtype('int64') according to the rule 'safe'\r\nApply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float32, scalar)>, <TensorType(float32, scalar)>, <TensorType(int64, vector)>)\r\nToposort index: 0\r\nInputs types: [TensorType(float32, scalar), TensorType(float32, scalar), TensorType(int64, vector)]\r\nInputs shapes: [(), (), (2,)]\r\nInputs strides: [(), (), (8,)]\r\nInputs values: [array(5.0, dtype=float32), array(0.25, dtype=float32), array([3, 5])]\r\nOutputs clients: [['output']]\r\n\r\nBacktrace when the node is created(use Theano flag traceback.limit=N to make it longer):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 176, in __call__\r\n    return self.run(*arg, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 223, in run\r\n    test(orig)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 45, in __call__\r\n    return self.run(*arg, **kwarg)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 133, in run\r\n    self.runTest(result)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 151, in runTest\r\n    test(result)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 433, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 369, in run\r\n    testMethod()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 99, in test_infer_shape\r\n    [Binomial(sp_format, o_type)(*self.inputs)],\r\n\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n======================================================================\r\nERROR: test_op (theano.sparse.tests.test_sp2.BinomialTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 86, in test_op\r\n    tested = f(*self._inputs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/op.py\", line 905, in rval\r\n    r = p(n, [x[0] for x in i], o)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/sandbox/sp2.py\", line 126, in perform\r\n    binomial = numpy.random.binomial(n, p, size=shape)\r\n  File \"mtrand.pyx\", line 3764, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:28820)\r\nTypeError: Cannot cast array data from dtype('float32') to dtype('int64') according to the rule 'safe'\r\nApply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float32, scalar)>, <TensorType(float32, scalar)>, <TensorType(int64, vector)>)\r\nToposort index: 0\r\nInputs types: [TensorType(float32, scalar), TensorType(float32, scalar), TensorType(int64, vector)]\r\nInputs shapes: [(), (), (2,)]\r\nInputs strides: [(), (), (8,)]\r\nInputs values: [array(5.0, dtype=float32), array(0.25, dtype=float32), array([3, 5])]\r\nOutputs clients: [['output']]\r\n\r\nBacktrace when the node is created(use Theano flag traceback.limit=N to make it longer):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 176, in __call__\r\n    return self.run(*arg, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 223, in run\r\n    test(orig)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 45, in __call__\r\n    return self.run(*arg, **kwarg)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 133, in run\r\n    self.runTest(result)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 151, in runTest\r\n    test(result)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 433, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 369, in run\r\n    testMethod()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 84, in test_op\r\n    Binomial(sp_format, o_type)(*self.inputs))\r\n\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n----------------------------------------------------------------------\r\nRan 6 tests in 10.112s\r\n\r\nFAILED (errors=2)\r\n[yukun@xcatmn theano]$\r\n```\r\n\r\n- The whole theano nosetests result:\r\n(Please ingore the two CAReduce errors below. It's caused by offical theano:\r\nFAIL: test_c (theano.tensor.tests.test_elemwise.test_CAReduce)\r\nFAIL: test_perform (theano.tensor.tests.test_elemwise.test_CAReduce)\r\n)\r\n\r\n```\r\n  idx = numpy.random.random_integers(huge, size=2) % shape\r\n/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/typed_list/tests/test_basic.py:37: DeprecationWarning: This function is deprecated. Please call randint(1, 1073741824 + 1) instead\r\n  idx = numpy.random.random_integers(huge, size=2) % shape\r\n...................................................S/usr/lib64/python2.7/unittest/case.py:369: UserWarning: consider_constant() is deprecated, use zero_grad() or disconnected_grad() instead.\r\n  testMethod()\r\n............................................SS......SSSSS...SSSSS.......S.........SS.....................\r\n======================================================================\r\nERROR: test_infer_shape (theano.sparse.tests.test_sp2.BinomialTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 101, in test_infer_shape\r\n    self.op_class)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tests/unittest_tools.py\", line 251, in _compile_and_check\r\n    numeric_outputs = outputs_function(*numeric_inputs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/op.py\", line 905, in rval\r\n    r = p(n, [x[0] for x in i], o)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/sandbox/sp2.py\", line 126, in perform\r\n    binomial = numpy.random.binomial(n, p, size=shape)\r\n  File \"mtrand.pyx\", line 3760, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:28715)\r\nTypeError: Cannot cast array data from dtype('float32') to dtype('int64') according to the rule 'safe'\r\nApply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float32, scalar)>, <TensorType(float32, scalar)>, <TensorType(int64, vector)>)\r\nToposort index: 0\r\nInputs types: [TensorType(float32, scalar), TensorType(float32, scalar), TensorType(int64, vector)]\r\nInputs shapes: [(), (), (2,)]\r\nInputs strides: [(), (), (8,)]\r\nInputs values: [array(5.0, dtype=float32), array(0.25, dtype=float32), array([3, 5])]\r\nOutputs clients: [['output']]\r\n\r\nBacktrace when the node is created(use Theano flag traceback.limit=N to make it longer):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 176, in __call__\r\n    return self.run(*arg, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 223, in run\r\n    test(orig)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 45, in __call__\r\n    return self.run(*arg, **kwarg)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 133, in run\r\n    self.runTest(result)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 151, in runTest\r\n    test(result)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 433, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 369, in run\r\n    testMethod()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 99, in test_infer_shape\r\n    [Binomial(sp_format, o_type)(*self.inputs)],\r\n\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n======================================================================\r\nERROR: test_op (theano.sparse.tests.test_sp2.BinomialTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 86, in test_op\r\n    tested = f(*self._inputs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/op.py\", line 905, in rval\r\n    r = p(n, [x[0] for x in i], o)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/sandbox/sp2.py\", line 126, in perform\r\n    binomial = numpy.random.binomial(n, p, size=shape)\r\n  File \"mtrand.pyx\", line 3760, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:28715)\r\nTypeError: Cannot cast array data from dtype('float32') to dtype('int64') according to the rule 'safe'\r\nApply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float32, scalar)>, <TensorType(float32, scalar)>, <TensorType(int64, vector)>)\r\nToposort index: 0\r\nInputs types: [TensorType(float32, scalar), TensorType(float32, scalar), TensorType(int64, vector)]\r\nInputs shapes: [(), (), (2,)]\r\nInputs strides: [(), (), (8,)]\r\nInputs values: [array(5.0, dtype=float32), array(0.25, dtype=float32), array([3, 5])]\r\nOutputs clients: [['output']]\r\n\r\nBacktrace when the node is created(use Theano flag traceback.limit=N to make it longer):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 176, in __call__\r\n    return self.run(*arg, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 223, in run\r\n    test(orig)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 45, in __call__\r\n    return self.run(*arg, **kwarg)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 133, in run\r\n    self.runTest(result)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 151, in runTest\r\n    test(result)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 433, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 369, in run\r\n    testMethod()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 84, in test_op\r\n    Binomial(sp_format, o_type)(*self.inputs))\r\n\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n======================================================================\r\nERROR: test_DownsampleFactorMax (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 191, in test_DownsampleFactorMax\r\n    mode=mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_max_pool_2d_2D (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 670, in test_max_pool_2d_2D\r\n    mode=mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_max_pool_2d_3D (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 716, in test_max_pool_2d_3D\r\n    mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_max_pool_2d_6D (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 743, in test_max_pool_2d_6D\r\n    mode=mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_grad (theano.tensor.tests.test_basic.ArctanhInplaceTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_basic.py\", line 483, in test_grad\r\n    eps=_grad_eps)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tests/unittest_tools.py\", line 91, in verify_grad\r\n    T.verify_grad(op, pt, n_tests, rng, *args, **kwargs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gradient.py\", line 1697, in verify_grad\r\n    abs_tol, rel_tol)\r\nGradientError: GradientError: numeric gradient and analytic gradient exceed tolerance:\r\n        At position 4 of argument 0,\r\n            abs. error = 3.537018,  abs. tolerance = 0.010000\r\n            rel. error = 0.013429,  rel. tolerance = 0.010000\r\nException args:\r\nThe error happened with the following inputs:, [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)],\r\nThe value of eps is:, None,\r\nThe out_type is:, None, Test arctanh_inplace::normal: Error occurred while computing the gradient on the following inputs: [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)]\r\n\r\n======================================================================\r\nERROR: test_grad (theano.tensor.tests.test_basic.ArctanhTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_basic.py\", line 483, in test_grad\r\n    eps=_grad_eps)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tests/unittest_tools.py\", line 91, in verify_grad\r\n    T.verify_grad(op, pt, n_tests, rng, *args, **kwargs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gradient.py\", line 1697, in verify_grad\r\n    abs_tol, rel_tol)\r\nGradientError: GradientError: numeric gradient and analytic gradient exceed tolerance:\r\n        At position 4 of argument 0,\r\n            abs. error = 3.537018,  abs. tolerance = 0.010000\r\n            rel. error = 0.013429,  rel. tolerance = 0.010000\r\nException args:\r\nThe error happened with the following inputs:, [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)],\r\nThe value of eps is:, None,\r\nThe out_type is:, None, Test Elemwise{arctanh,no_inplace}::normal: Error occurred while computing the gradient on the following inputs: [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)]\r\n\r\n======================================================================\r\nERROR: test_extract_diag (theano.tensor.tests.test_nlinalg.test_diag)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_nlinalg.py\", line 312, in test_extract_diag\r\n    r = f()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/op.py\", line 905, in rval\r\n    r = p(n, [x[0] for x in i], o)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/nlinalg.py\", line 212, in perform\r\n    rval.strides = (x.strides[0] + x.strides[1],)\r\nTypeError: invalid strides\r\nApply node that caused the error: ExtractDiag{view=False}(<TensorType(float32, matrix)>)\r\nToposort index: 0\r\nInputs types: [TensorType(float32, matrix)]\r\nInputs shapes: [(1, 1)]\r\nInputs strides: [(9223372036854775807, 9223372036854775807)]\r\nInputs values: [array([[ 0.25913185]], dtype=float32)]\r\nOutputs clients: [['output']]\r\n\r\nBacktrace when the node is created(use Theano flag traceback.limit=N to make it longer):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 176, in __call__\r\n    return self.run(*arg, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 223, in run\r\n    test(orig)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 45, in __call__\r\n    return self.run(*arg, **kwarg)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 133, in run\r\n    self.runTest(result)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 151, in runTest\r\n    test(result)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 433, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 369, in run\r\n    testMethod()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_nlinalg.py\", line 302, in test_extract_diag\r\n    g = extract_diag(x)\r\n\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n======================================================================\r\nFAIL: theano.gof.tests.test_vm.test_allow_gc_cvm\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/tests/test_vm.py\", line 229, in test_allow_gc_cvm\r\n    assert f.fn.storage_map[n][0] is None\r\nAssertionError\r\n\r\n======================================================================\r\nFAIL: test_broadcastable_patterns (theano.tensor.tests.test_basic.t_dot)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_basic.py\", line 4911, in test_broadcastable_patterns\r\n    f(xval, yval, tval)  # debugmode checks result\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\nAssertionError: xx is a double-strided matrix, and should have been copied into a memory-contiguous one.\r\nApply node that caused the error: CGemv{inplace}(AllocEmpty{dtype='float32'}.0, TensorConstant{1.0}, <TensorType(float32, (True, True))>, <TensorType(float32, vector)>, TensorConstant{0.0})\r\nToposort index: 1\r\nInputs types: [TensorType(float32, (True,)), TensorType(float32, scalar), TensorType(float32, (True, True)), TensorType(float32, vector), TensorType(float32, scalar)]\r\nInputs shapes: [(1,), (), (1, 1), (1,), ()]\r\nInputs strides: [(9223372036854775807,), (), (9223372036854775807, 9223372036854775807), (9223372036854775807,), ()]\r\nInputs values: [array([ 1.10000002], dtype=float32), array(1.0, dtype=float32), array([[ 1.29999995]], dtype=float32), array([ 1.20000005], dtype=float32), array(0.0, dtype=float32)]\r\nOutputs clients: [[Elemwise{Composite{((i0 * i1) + (i2 * i3))}}[(0, 1)](TensorConstant{(1,) of 3.0}, CGemv{inplace}.0, TensorConstant{(1,) of 2.0}, <TensorType(float32, (True,))>)]]\r\n\r\nHINT: Re-running with most Theano optimization disabled could give you a back-trace of when this node was created. This can be done with by setting the Theano flag 'optimizer=fast_compile'. If that does not work, Theano optimizations can be disabled with 'optimizer=None'.\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n======================================================================\r\nFAIL: test_gemv (theano.tensor.tests.test_blas_c.TestBlasStridesC)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_blas.py\", line 2100, in test_gemv\r\n    self.cmp_gemv(3, (3, 1), 1)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_blas.py\", line 2091, in cmp_gemv\r\n    assert numpy.allclose(a.get_value(), a_n), (a.get_value(), a_n)\r\nAssertionError: (array([ 0.91474393,  0.62098558]), array([ 0.9220191 ,  0.63241739]))\r\n\r\n======================================================================\r\nFAIL: test_c (theano.tensor.tests.test_elemwise.test_CAReduce)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 541, in test_c\r\n    self.with_linker(gof.CLinker(), scalar.and_, dtype=dtype)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 472, in with_linker\r\n    (f_xv, zv, xsh, tosum))\r\nAssertionError: (array(1, dtype=int8), array(-1, dtype=int8), (5, 0), [0, 1])\r\n\r\n======================================================================\r\nFAIL: test_perform (theano.tensor.tests.test_elemwise.test_CAReduce)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 506, in test_perform\r\n    self.with_linker(gof.PerformLinker(), scalar.and_, dtype=dtype)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 472, in with_linker\r\n    (f_xv, zv, xsh, tosum))\r\nAssertionError: (array(1, dtype=int8), array(-1, dtype=int8), (5, 0), [0, 1])\r\n\r\n======================================================================\r\nFAIL: test_local_log_erfc (theano.tensor.tests.test_opt.T_local_erfc)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_opt.py\", line 4780, in test_local_log_erfc\r\n    assert all(numpy.isfinite(f(val)))\r\nAssertionError\r\n\r\n----------------------------------------------------------------------\r\nRan 3039 tests in 8032.064s\r\n\r\nFAILED (SKIP=116, errors=9, failures=6)\r\n```"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/269162405","html_url":"https://github.com/numpy/numpy/issues/8420#issuecomment-269162405","issue_url":"https://api.github.com/repos/numpy/numpy/issues/8420","id":269162405,"user":{"login":"KevinYuk","id":20220399,"avatar_url":"https://avatars.githubusercontent.com/u/20220399?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinYuk","html_url":"https://github.com/KevinYuk","followers_url":"https://api.github.com/users/KevinYuk/followers","following_url":"https://api.github.com/users/KevinYuk/following{/other_user}","gists_url":"https://api.github.com/users/KevinYuk/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinYuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinYuk/subscriptions","organizations_url":"https://api.github.com/users/KevinYuk/orgs","repos_url":"https://api.github.com/users/KevinYuk/repos","events_url":"https://api.github.com/users/KevinYuk/events{/privacy}","received_events_url":"https://api.github.com/users/KevinYuk/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T04:59:26Z","updated_at":"2016-12-26T04:59:26Z","body":"\r\n@charris Please check it by using maintenance/1.12.x branch, still report error and fail.\r\n\r\nlog:\r\n======================================================================\r\nERROR: test_infer_shape (theano.sparse.tests.test_sp2.BinomialTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 101, in test_infer_shape\r\n    self.op_class)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tests/unittest_tools.py\", line 251, in _compile_and_check\r\n    numeric_outputs = outputs_function(*numeric_inputs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/op.py\", line 905, in rval\r\n    r = p(n, [x[0] for x in i], o)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/sandbox/sp2.py\", line 126, in perform\r\n    binomial = numpy.random.binomial(n, p, size=shape)\r\n  File \"mtrand.pyx\", line 3764, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:28820)\r\nTypeError: Cannot cast array data from dtype('float32') to dtype('int64') according to the rule 'safe'\r\nApply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float32, scalar)>, <TensorType(float32, scalar)>, <TensorType(int64, vector)>)\r\nToposort index: 0\r\nInputs types: [TensorType(float32, scalar), TensorType(float32, scalar), TensorType(int64, vector)]\r\nInputs shapes: [(), (), (2,)]\r\nInputs strides: [(), (), (8,)]\r\nInputs values: [array(5.0, dtype=float32), array(0.25, dtype=float32), array([3, 5])]\r\nOutputs clients: [['output']]\r\n\r\nBacktrace when the node is created(use Theano flag traceback.limit=N to make it longer):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 176, in __call__\r\n    return self.run(*arg, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 223, in run\r\n    test(orig)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 45, in __call__\r\n    return self.run(*arg, **kwarg)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 133, in run\r\n    self.runTest(result)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 151, in runTest\r\n    test(result)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 433, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 369, in run\r\n    testMethod()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 99, in test_infer_shape\r\n    [Binomial(sp_format, o_type)(*self.inputs)],\r\n\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n======================================================================\r\nERROR: test_op (theano.sparse.tests.test_sp2.BinomialTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 86, in test_op\r\n    tested = f(*self._inputs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 875, in __call__\r\n    storage_map=getattr(self.fn, 'storage_map', None))\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/link.py\", line 317, in raise_with_op\r\n    reraise(exc_type, exc_value, exc_trace)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/compile/function_module.py\", line 862, in __call__\r\n    self.fn() if output_subset is None else\\\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/op.py\", line 905, in rval\r\n    r = p(n, [x[0] for x in i], o)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/sandbox/sp2.py\", line 126, in perform\r\n    binomial = numpy.random.binomial(n, p, size=shape)\r\n  File \"mtrand.pyx\", line 3764, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:28820)\r\nTypeError: Cannot cast array data from dtype('float32') to dtype('int64') according to the rule 'safe'\r\nApply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float32, scalar)>, <TensorType(float32, scalar)>, <TensorType(int64, vector)>)\r\nToposort index: 0\r\nInputs types: [TensorType(float32, scalar), TensorType(float32, scalar), TensorType(int64, vector)]\r\nInputs shapes: [(), (), (2,)]\r\nInputs strides: [(), (), (8,)]\r\nInputs values: [array(5.0, dtype=float32), array(0.25, dtype=float32), array([3, 5])]\r\nOutputs clients: [['output']]\r\n\r\nBacktrace when the node is created(use Theano flag traceback.limit=N to make it longer):\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 176, in __call__\r\n    return self.run(*arg, **kw)\r\n  File \"/usr/lib/python2.7/site-packages/nose/suite.py\", line 223, in run\r\n    test(orig)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 45, in __call__\r\n    return self.run(*arg, **kwarg)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 133, in run\r\n    self.runTest(result)\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 151, in runTest\r\n    test(result)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 433, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/lib64/python2.7/unittest/case.py\", line 369, in run\r\n    testMethod()\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/sparse/tests/test_sp2.py\", line 84, in test_op\r\n    Binomial(sp_format, o_type)(*self.inputs))\r\n\r\nHINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.\r\n\r\n======================================================================\r\nERROR: test_DownsampleFactorMax (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 191, in test_DownsampleFactorMax\r\n    mode=mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_max_pool_2d_2D (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 670, in test_max_pool_2d_2D\r\n    mode=mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_max_pool_2d_3D (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 716, in test_max_pool_2d_3D\r\n    mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_max_pool_2d_6D (theano.tensor.signal.tests.test_pool.TestDownsampleFactorMax)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 743, in test_max_pool_2d_6D\r\n    mode=mode)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/signal/tests/test_pool.py\", line 40, in numpy_max_pool_2d\r\n    output_val = numpy.zeros(out_shp)\r\nTypeError: 'float' object cannot be interpreted as an index\r\n\r\n======================================================================\r\nERROR: test_grad (theano.tensor.tests.test_basic.ArctanhInplaceTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_basic.py\", line 483, in test_grad\r\n    eps=_grad_eps)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tests/unittest_tools.py\", line 91, in verify_grad\r\n    T.verify_grad(op, pt, n_tests, rng, *args, **kwargs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gradient.py\", line 1697, in verify_grad\r\n    abs_tol, rel_tol)\r\nGradientError: GradientError: numeric gradient and analytic gradient exceed tolerance:\r\n        At position 4 of argument 0,\r\n            abs. error = 3.537018,  abs. tolerance = 0.010000\r\n            rel. error = 0.013429,  rel. tolerance = 0.010000\r\nException args:\r\nThe error happened with the following inputs:, [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)],\r\nThe value of eps is:, None,\r\nThe out_type is:, None, Test arctanh_inplace::normal: Error occurred while computing the gradient on the following inputs: [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)]\r\n\r\n======================================================================\r\nERROR: test_grad (theano.tensor.tests.test_basic.ArctanhTester)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_basic.py\", line 483, in test_grad\r\n    eps=_grad_eps)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tests/unittest_tools.py\", line 91, in verify_grad\r\n    T.verify_grad(op, pt, n_tests, rng, *args, **kwargs)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gradient.py\", line 1697, in verify_grad\r\n    abs_tol, rel_tol)\r\nGradientError: GradientError: numeric gradient and analytic gradient exceed tolerance:\r\n        At position 4 of argument 0,\r\n            abs. error = 3.537018,  abs. tolerance = 0.010000\r\n            rel. error = 0.013429,  rel. tolerance = 0.010000\r\nException args:\r\nThe error happened with the following inputs:, [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)],\r\nThe value of eps is:, None,\r\nThe out_type is:, None, Test Elemwise{arctanh,no_inplace}::normal: Error occurred while computing the gradient on the following inputs: [array([[ 0.28898013,  0.98691875, -0.37341487],\r\n       [-0.83661169, -0.99454761, -0.57619613]], dtype=float32)]\r\n\r\n======================================================================\r\nFAIL: theano.gof.tests.test_vm.test_allow_gc_cvm\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/gof/tests/test_vm.py\", line 229, in test_allow_gc_cvm\r\n    assert f.fn.storage_map[n][0] is None\r\nAssertionError\r\n\r\n======================================================================\r\nFAIL: test_c (theano.tensor.tests.test_elemwise.test_CAReduce)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 541, in test_c\r\n    self.with_linker(gof.CLinker(), scalar.and_, dtype=dtype)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 472, in with_linker\r\n    (f_xv, zv, xsh, tosum))\r\nAssertionError: (array(1, dtype=int8), array(-1, dtype=int8), (5, 0), [0, 1])\r\n======================================================================\r\nFAIL: test_perform (theano.tensor.tests.test_elemwise.test_CAReduce)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 506, in test_perform\r\n    self.with_linker(gof.PerformLinker(), scalar.and_, dtype=dtype)\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_elemwise.py\", line 472, in with_linker\r\n    (f_xv, zv, xsh, tosum))\r\nAssertionError: (array(1, dtype=int8), array(-1, dtype=int8), (5, 0), [0, 1])\r\n\r\n======================================================================\r\nFAIL: test_local_log_erfc (theano.tensor.tests.test_opt.T_local_erfc)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/yukun/theano_pak/_2_stage_opti_theano/dl4mt-opti/theano/theano/tensor/tests/test_opt.py\", line 4780, in test_local_log_erfc\r\n    assert all(numpy.isfinite(f(val)))\r\nAssertionError\r\n\r\n----------------------------------------------------------------------\r\nRan 3039 tests in 7024.920s\r\n\r\nFAILED (SKIP=116, errors=8, failures=4)\r\n"}}
{"actor":{"display_login":"KevinYuk"}}