Created
July 21, 2015 13:26
-
-
Save MartinThoma/01911e3001a5893573bd to your computer and use it in GitHub Desktop.
Lasagne master branch failing tests
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test session starts ============================== | |
platform linux2 -- Python 2.7.6 -- py-1.4.30 -- pytest-2.7.2 -- /usr/bin/python | |
cachedir: /home/moose/GitHub/Lasagne/.cache | |
rootdir: /home/moose/GitHub/Lasagne, inifile: setup.cfg | |
plugins: cov, cache, pep8 | |
collecting ... collected 714 items | |
lasagne/__init__.py SKIPPED | |
lasagne/conftest.py SKIPPED | |
lasagne/init.py SKIPPED | |
lasagne/init.py::lasagne.init PASSED | |
lasagne/nonlinearities.py SKIPPED | |
lasagne/nonlinearities.py::lasagne.nonlinearities.LeakyRectify PASSED | |
lasagne/objectives.py SKIPPED | |
lasagne/objectives.py::lasagne.objectives PASSED | |
lasagne/regularization.py SKIPPED | |
lasagne/updates.py SKIPPED | |
lasagne/updates.py::lasagne.updates PASSED | |
lasagne/updates.py::lasagne.updates.norm_constraint PASSED | |
lasagne/updates.py::lasagne.updates.total_norm_constraint PASSED | |
lasagne/utils.py SKIPPED | |
lasagne/utils.py::lasagne.utils.compute_norms PASSED | |
lasagne/layers/__init__.py SKIPPED | |
lasagne/layers/base.py PASSED | |
lasagne/layers/base.py::lasagne.layers.base.Layer.add_param PASSED | |
lasagne/layers/conv.py PASSED | |
lasagne/layers/dense.py PASSED | |
lasagne/layers/dense.py::lasagne.layers.dense.DenseLayer PASSED | |
lasagne/layers/dense.py::lasagne.layers.dense.NINLayer PASSED | |
lasagne/layers/embedding.py SKIPPED | |
lasagne/layers/embedding.py::lasagne.layers.embedding.EmbeddingLayer PASSED | |
lasagne/layers/helper.py PASSED | |
lasagne/layers/helper.py::lasagne.layers.helper.count_params PASSED | |
lasagne/layers/helper.py::lasagne.layers.helper.get_all_layers PASSED | |
lasagne/layers/helper.py::lasagne.layers.helper.get_all_param_values PASSED | |
lasagne/layers/helper.py::lasagne.layers.helper.get_all_params PASSED | |
lasagne/layers/helper.py::lasagne.layers.helper.set_all_param_values PASSED | |
lasagne/layers/input.py SKIPPED | |
lasagne/layers/input.py::lasagne.layers.input.InputLayer PASSED | |
lasagne/layers/merge.py PASSED | |
lasagne/layers/noise.py PASSED | |
lasagne/layers/normalization.py SKIPPED | |
lasagne/layers/pool.py PASSED | |
lasagne/layers/shape.py PASSED | |
lasagne/layers/shape.py::lasagne.layers.shape.SliceLayer PASSED | |
lasagne/layers/shape.py::lasagne.layers.shape.dimshuffle PASSED | |
lasagne/layers/shape.py::lasagne.layers.shape.reshape PASSED | |
lasagne/tests/conftest.py SKIPPED | |
lasagne/tests/test_examples.py SKIPPED | |
lasagne/tests/test_examples.py::test_example[mnist] PASSED | |
lasagne/tests/test_examples.py::test_example[mnist_conv_cc] SKIPPED | |
lasagne/tests/test_examples.py::test_example[mnist_conv] FAILED | |
lasagne/tests/test_examples.py::test_example[mnist_conv_dnn] FAILED | |
lasagne/tests/test_init.py SKIPPED | |
lasagne/tests/test_init.py::test_initializer_sample PASSED | |
lasagne/tests/test_init.py::test_shape PASSED | |
lasagne/tests/test_init.py::test_normal PASSED | |
lasagne/tests/test_init.py::test_uniform_range_as_number PASSED | |
lasagne/tests/test_init.py::test_uniform_range_as_range PASSED | |
lasagne/tests/test_init.py::test_uniform_mean_std PASSED | |
lasagne/tests/test_init.py::test_glorot_normal PASSED | |
lasagne/tests/test_init.py::test_glorot_1d_not_supported PASSED | |
lasagne/tests/test_init.py::test_glorot_normal_receptive_field PASSED | |
lasagne/tests/test_init.py::test_glorot_normal_gain PASSED | |
lasagne/tests/test_init.py::test_glorot_normal_c01b PASSED | |
lasagne/tests/test_init.py::test_glorot_normal_c01b_4d_only PASSED | |
lasagne/tests/test_init.py::test_glorot_uniform PASSED | |
lasagne/tests/test_init.py::test_glorot_uniform_receptive_field PASSED | |
lasagne/tests/test_init.py::test_glorot_uniform_gain PASSED | |
lasagne/tests/test_init.py::test_glorot_uniform_c01b PASSED | |
lasagne/tests/test_init.py::test_glorot_uniform_c01b_4d_only PASSED | |
lasagne/tests/test_init.py::test_he_normal PASSED | |
lasagne/tests/test_init.py::test_he_1d_not_supported PASSED | |
lasagne/tests/test_init.py::test_he_normal_receptive_field PASSED | |
lasagne/tests/test_init.py::test_he_normal_gain PASSED | |
lasagne/tests/test_init.py::test_he_normal_c01b PASSED | |
lasagne/tests/test_init.py::test_he_normal_c01b_4d_only PASSED | |
lasagne/tests/test_init.py::test_he_uniform PASSED | |
lasagne/tests/test_init.py::test_he_uniform_receptive_field PASSED | |
lasagne/tests/test_init.py::test_he_uniform_gain PASSED | |
lasagne/tests/test_init.py::test_he_uniform_c01b PASSED | |
lasagne/tests/test_init.py::test_he_uniform_c01b_4d_only PASSED | |
lasagne/tests/test_init.py::test_constant PASSED | |
lasagne/tests/test_init.py::test_sparse PASSED | |
lasagne/tests/test_init.py::test_sparse_1d_not_supported PASSED | |
lasagne/tests/test_init.py::test_orthogonal PASSED | |
lasagne/tests/test_init.py::test_orthogonal_gain PASSED | |
lasagne/tests/test_init.py::test_orthogonal_multi PASSED | |
lasagne/tests/test_init.py::test_orthogonal_1d_not_supported PASSED | |
lasagne/tests/test_nonlinearities.py SKIPPED | |
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[linear] PASSED | |
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[rectify] PASSED | |
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[leaky_rectify] PASSED | |
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[sigmoid] PASSED | |
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[tanh] PASSED | |
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[softmax] FAILED | |
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[leaky_rectify_0] PASSED | |
lasagne/tests/test_objectives.py SKIPPED | |
lasagne/tests/test_objectives.py::test_binary_crossentropy PASSED | |
lasagne/tests/test_objectives.py::test_categorical_crossentropy PASSED | |
lasagne/tests/test_objectives.py::test_categorical_crossentropy_onehot PASSED | |
lasagne/tests/test_objectives.py::test_squared_error PASSED | |
lasagne/tests/test_objectives.py::test_aggregate_mean PASSED | |
lasagne/tests/test_objectives.py::test_aggregate_sum PASSED | |
lasagne/tests/test_objectives.py::test_aggregate_weighted_mean PASSED | |
lasagne/tests/test_objectives.py::test_aggregate_weighted_sum PASSED | |
lasagne/tests/test_objectives.py::test_aggregate_weighted_normalized_sum PASSED | |
lasagne/tests/test_objectives.py::test_aggregate_invalid PASSED | |
lasagne/tests/test_regularization.py SKIPPED | |
lasagne/tests/test_regularization.py::TestRegularizationPenalties::test_penalty[l1] PASSED | |
lasagne/tests/test_regularization.py::TestRegularizationPenalties::test_penalty[l2] PASSED | |
lasagne/tests/test_regularization.py::TestRegularizationHelpers::test_apply_penalty PASSED | |
lasagne/tests/test_regularization.py::TestRegularizationHelpers::test_regularize_layer_params_single_layer PASSED | |
lasagne/tests/test_regularization.py::TestRegularizationHelpers::test_regularize_layer_params_multiple_layers PASSED | |
lasagne/tests/test_regularization.py::TestRegularizationHelpers::test_regularize_network_params PASSED | |
lasagne/tests/test_regularization.py::TestRegularizationHelpers::test_regularize_layer_params_weighted PASSED | |
lasagne/tests/test_theano_extensions.py SKIPPED | |
lasagne/tests/test_theano_extensions.py::test_conv[1-conv1d_sc] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[1-conv1d_mc0] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[1-conv1d_mc1] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[1-conv1d_unstrided] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[1-conv1d_sd] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv[1-conv1d_md] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv[2-conv1d_sc] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[2-conv1d_mc0] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[2-conv1d_mc1] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[2-conv1d_unstrided] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv[2-conv1d_sd] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv[2-conv1d_md] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_nones[conv1d_sc] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv_nones[conv1d_mc0] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv_nones[conv1d_mc1] FAILED | |
lasagne/tests/test_theano_extensions.py::test_conv_border_mode[conv1d_sc] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_border_mode[conv1d_mc0] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_border_mode[conv1d_mc1] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_border_mode[conv1d_unstrided] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_border_mode[conv1d_sd] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_border_mode[conv1d_md] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_stride[conv1d_unstrided] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_stride[conv1d_sd] PASSED | |
lasagne/tests/test_theano_extensions.py::test_conv_stride[conv1d_md] PASSED | |
lasagne/tests/test_theano_extensions.py::test_pad[0] PASSED | |
lasagne/tests/test_theano_extensions.py::test_pad[7] PASSED | |
lasagne/tests/test_updates.py SKIPPED | |
lasagne/tests/test_updates.py::TestUpdateFunctions::test_updates[sgd-kwargs0] PASSED | |
lasagne/tests/test_updates.py::TestUpdateFunctions::test_updates[momentum-kwargs1] PASSED | |
lasagne/tests/test_updates.py::TestUpdateFunctions::test_updates[nesterov_momentum-kwargs2] PASSED | |
lasagne/tests/test_updates.py::TestUpdateFunctions::test_updates[adagrad-kwargs3] PASSED | |
lasagne/tests/test_updates.py::TestUpdateFunctions::test_updates[rmsprop-kwargs4] PASSED | |
lasagne/tests/test_updates.py::TestUpdateFunctions::test_updates[adadelta-kwargs5] PASSED | |
lasagne/tests/test_updates.py::TestUpdateFunctions::test_updates[adam-kwargs6] PASSED | |
lasagne/tests/test_updates.py::test_get_or_compute_grads_raises PASSED | |
lasagne/tests/test_updates.py::test_norm_constraint[2] PASSED | |
lasagne/tests/test_updates.py::test_norm_constraint[3] PASSED | |
lasagne/tests/test_updates.py::test_norm_constraint_norm_axes PASSED | |
lasagne/tests/test_updates.py::test_norm_constraint_dim6_raises PASSED | |
lasagne/tests/test_updates.py::test_total_norm_constraint PASSED | |
lasagne/tests/test_utils.py SKIPPED | |
lasagne/tests/test_utils.py::test_shared_empty PASSED | |
lasagne/tests/test_utils.py::test_as_theano_expression_fails PASSED | |
lasagne/tests/test_utils.py::test_one_hot PASSED | |
lasagne/tests/test_utils.py::test_as_tuple_fails PASSED | |
lasagne/tests/test_utils.py::test_compute_norms PASSED | |
lasagne/tests/test_utils.py::test_compute_norms_axes PASSED | |
lasagne/tests/test_utils.py::test_compute_norms_ndim6_raises PASSED | |
lasagne/tests/test_utils.py::test_create_param_bad_callable_raises PASSED | |
lasagne/tests/test_utils.py::test_create_param_bad_spec_raises PASSED | |
lasagne/tests/test_utils.py::test_create_param_accepts_iterable_shape PASSED | |
lasagne/tests/test_utils.py::test_create_param_numpy_bad_shape_raises_error PASSED | |
lasagne/tests/test_utils.py::test_create_param_numpy_returns_shared PASSED | |
lasagne/tests/test_utils.py::test_create_param_shared_returns_same PASSED | |
lasagne/tests/test_utils.py::test_create_param_shared_bad_ndim_raises_error PASSED | |
lasagne/tests/test_utils.py::test_create_param_callable_returns_return_value PASSED | |
lasagne/tests/test_utils.py::test_nonpositive_dims_raises_value_error PASSED | |
lasagne/tests/layers/conftest.py SKIPPED | |
lasagne/tests/layers/test_base.py SKIPPED | |
lasagne/tests/layers/test_base.py::TestLayer::test_input_shape PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_layer_from_shape PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_named_layer PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_get_params PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_get_params_tags PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_add_param_tags PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_add_param_name PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_add_param_named_layer_name PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_get_output_for_notimplemented PASSED | |
lasagne/tests/layers/test_base.py::TestLayer::test_nonpositive_input_dims_raises_value_error PASSED | |
lasagne/tests/layers/test_base.py::TestMergeLayer::test_input_shapes PASSED | |
lasagne/tests/layers/test_base.py::TestMergeLayer::test_layer_from_shape PASSED | |
lasagne/tests/layers/test_base.py::TestMergeLayer::test_get_params PASSED | |
lasagne/tests/layers/test_base.py::TestMergeLayer::test_get_output_shape_for_notimplemented PASSED | |
lasagne/tests/layers/test_base.py::TestMergeLayer::test_get_output_for_notimplemented PASSED | |
lasagne/tests/layers/test_conv.py PASSED | |
lasagne/tests/layers/test_conv.py::test_conv_output_length PASSED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input7-kernel7-output7-kwargs7] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input8-kernel8-output8-kwargs8] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs0-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input7-kernel7-output7-kwargs7] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input8-kernel8-output8-kwargs8] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_defaults[extra_kwargs1-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_init_none_nonlinearity_bias PASSED | |
lasagne/tests/layers/test_conv.py::TestConv1DLayer::test_invalid_border_mode PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input7-kernel7-output7-kwargs7] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input8-kernel8-output8-kwargs8] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input10-kernel10-output10-kwargs10] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input11-kernel11-output11-kwargs11] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input12-kernel12-output12-kwargs12] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input13-kernel13-output13-kwargs13] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input14-kernel14-output14-kwargs14] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input15-kernel15-output15-kwargs15] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input16-kernel16-output16-kwargs16] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input17-kernel17-output17-kwargs17] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs0-input18-kernel18-output18-kwargs18] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input7-kernel7-output7-kwargs7] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input8-kernel8-output8-kwargs8] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input10-kernel10-output10-kwargs10] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input11-kernel11-output11-kwargs11] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input12-kernel12-output12-kwargs12] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input13-kernel13-output13-kwargs13] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input14-kernel14-output14-kwargs14] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input15-kernel15-output15-kwargs15] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input16-kernel16-output16-kwargs16] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input17-kernel17-output17-kwargs17] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl0-extra_kwargs1-input18-kernel18-output18-kwargs18] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input0-kernel0-output0-kwargs0] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input1-kernel1-output1-kwargs1] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input2-kernel2-output2-kwargs2] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input3-kernel3-output3-kwargs3] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input4-kernel4-output4-kwargs4] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input5-kernel5-output5-kwargs5] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input6-kernel6-output6-kwargs6] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input7-kernel7-output7-kwargs7] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input8-kernel8-output8-kwargs8] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input9-kernel9-output9-kwargs9] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input10-kernel10-output10-kwargs10] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input11-kernel11-output11-kwargs11] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input12-kernel12-output12-kwargs12] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input13-kernel13-output13-kwargs13] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input14-kernel14-output14-kwargs14] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input15-kernel15-output15-kwargs15] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input16-kernel16-output16-kwargs16] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input17-kernel17-output17-kwargs17] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs0-input18-kernel18-output18-kwargs18] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input0-kernel0-output0-kwargs0] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input1-kernel1-output1-kwargs1] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input2-kernel2-output2-kwargs2] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input3-kernel3-output3-kwargs3] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input4-kernel4-output4-kwargs4] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input5-kernel5-output5-kwargs5] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input6-kernel6-output6-kwargs6] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input7-kernel7-output7-kwargs7] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input8-kernel8-output8-kwargs8] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input9-kernel9-output9-kwargs9] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input10-kernel10-output10-kwargs10] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input11-kernel11-output11-kwargs11] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input12-kernel12-output12-kwargs12] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input13-kernel13-output13-kwargs13] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input14-kernel14-output14-kwargs14] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input15-kernel15-output15-kwargs15] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input16-kernel16-output16-kwargs16] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input17-kernel17-output17-kwargs17] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl1-extra_kwargs1-input18-kernel18-output18-kwargs18] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input0-kernel0-output0-kwargs0] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input1-kernel1-output1-kwargs1] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input2-kernel2-output2-kwargs2] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input3-kernel3-output3-kwargs3] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input4-kernel4-output4-kwargs4] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input5-kernel5-output5-kwargs5] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input6-kernel6-output6-kwargs6] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input7-kernel7-output7-kwargs7] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input8-kernel8-output8-kwargs8] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input9-kernel9-output9-kwargs9] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input10-kernel10-output10-kwargs10] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input11-kernel11-output11-kwargs11] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input12-kernel12-output12-kwargs12] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input13-kernel13-output13-kwargs13] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input14-kernel14-output14-kwargs14] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input15-kernel15-output15-kwargs15] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input16-kernel16-output16-kwargs16] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input17-kernel17-output17-kwargs17] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs0-input18-kernel18-output18-kwargs18] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input0-kernel0-output0-kwargs0] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input1-kernel1-output1-kwargs1] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input2-kernel2-output2-kwargs2] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input3-kernel3-output3-kwargs3] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input4-kernel4-output4-kwargs4] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input5-kernel5-output5-kwargs5] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input6-kernel6-output6-kwargs6] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input7-kernel7-output7-kwargs7] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input8-kernel8-output8-kwargs8] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input9-kernel9-output9-kwargs9] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input10-kernel10-output10-kwargs10] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input11-kernel11-output11-kwargs11] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input12-kernel12-output12-kwargs12] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input13-kernel13-output13-kwargs13] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input14-kernel14-output14-kwargs14] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input15-kernel15-output15-kwargs15] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input16-kernel16-output16-kwargs16] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input17-kernel17-output17-kwargs17] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl2-extra_kwargs1-input18-kernel18-output18-kwargs18] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input7-kernel7-output7-kwargs7] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input8-kernel8-output8-kwargs8] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input10-kernel10-output10-kwargs10] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input11-kernel11-output11-kwargs11] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input12-kernel12-output12-kwargs12] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input13-kernel13-output13-kwargs13] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input14-kernel14-output14-kwargs14] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input15-kernel15-output15-kwargs15] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input16-kernel16-output16-kwargs16] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input17-kernel17-output17-kwargs17] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs0-input18-kernel18-output18-kwargs18] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input7-kernel7-output7-kwargs7] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input8-kernel8-output8-kwargs8] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input10-kernel10-output10-kwargs10] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input11-kernel11-output11-kwargs11] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input12-kernel12-output12-kwargs12] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input13-kernel13-output13-kwargs13] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input14-kernel14-output14-kwargs14] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input15-kernel15-output15-kwargs15] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input16-kernel16-output16-kwargs16] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input17-kernel17-output17-kwargs17] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_defaults[Conv2DImpl3-extra_kwargs1-input18-kernel18-output18-kwargs18] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input7-kernel7-output7-kwargs7] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input8-kernel8-output8-kwargs8] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input10-kernel10-output10-kwargs10] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input11-kernel11-output11-kwargs11] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input12-kernel12-output12-kwargs12] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input13-kernel13-output13-kwargs13] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input14-kernel14-output14-kwargs14] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input15-kernel15-output15-kwargs15] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input16-kernel16-output16-kwargs16] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input17-kernel17-output17-kwargs17] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl0-input18-kernel18-output18-kwargs18] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input0-kernel0-output0-kwargs0] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input1-kernel1-output1-kwargs1] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input2-kernel2-output2-kwargs2] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input3-kernel3-output3-kwargs3] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input4-kernel4-output4-kwargs4] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input5-kernel5-output5-kwargs5] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input6-kernel6-output6-kwargs6] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input7-kernel7-output7-kwargs7] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input8-kernel8-output8-kwargs8] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input9-kernel9-output9-kwargs9] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input10-kernel10-output10-kwargs10] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input11-kernel11-output11-kwargs11] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input12-kernel12-output12-kwargs12] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input13-kernel13-output13-kwargs13] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input14-kernel14-output14-kwargs14] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input15-kernel15-output15-kwargs15] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input16-kernel16-output16-kwargs16] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input17-kernel17-output17-kwargs17] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl1-input18-kernel18-output18-kwargs18] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input0-kernel0-output0-kwargs0] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input1-kernel1-output1-kwargs1] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input2-kernel2-output2-kwargs2] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input3-kernel3-output3-kwargs3] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input4-kernel4-output4-kwargs4] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input5-kernel5-output5-kwargs5] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input6-kernel6-output6-kwargs6] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input7-kernel7-output7-kwargs7] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input8-kernel8-output8-kwargs8] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input9-kernel9-output9-kwargs9] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input10-kernel10-output10-kwargs10] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input11-kernel11-output11-kwargs11] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input12-kernel12-output12-kwargs12] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input13-kernel13-output13-kwargs13] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input14-kernel14-output14-kwargs14] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input15-kernel15-output15-kwargs15] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input16-kernel16-output16-kwargs16] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input17-kernel17-output17-kwargs17] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl2-input18-kernel18-output18-kwargs18] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input0-kernel0-output0-kwargs0] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input1-kernel1-output1-kwargs1] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input2-kernel2-output2-kwargs2] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input3-kernel3-output3-kwargs3] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input4-kernel4-output4-kwargs4] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input5-kernel5-output5-kwargs5] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input6-kernel6-output6-kwargs6] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input7-kernel7-output7-kwargs7] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input8-kernel8-output8-kwargs8] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input9-kernel9-output9-kwargs9] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input10-kernel10-output10-kwargs10] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input11-kernel11-output11-kwargs11] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input12-kernel12-output12-kwargs12] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input13-kernel13-output13-kwargs13] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input14-kernel14-output14-kwargs14] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input15-kernel15-output15-kwargs15] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input16-kernel16-output16-kwargs16] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input17-kernel17-output17-kwargs17] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_with_nones[Conv2DImpl3-input18-kernel18-output18-kwargs18] FAILED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_init_none_nonlinearity_bias[Conv2DImpl0] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_init_none_nonlinearity_bias[Conv2DImpl1] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_init_none_nonlinearity_bias[Conv2DImpl2] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_init_none_nonlinearity_bias[Conv2DImpl3] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_invalid_border_mode[Conv2DImpl0] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_invalid_border_mode[Conv2DImpl1] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_invalid_border_mode[Conv2DImpl2] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_invalid_border_mode[Conv2DImpl3] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_get_params[Conv2DImpl0] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_get_params[Conv2DImpl1] SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_get_params[Conv2DImpl2] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DLayerImplementations::test_get_params[Conv2DImpl3] PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DDNNLayer::test_import_without_gpu_or_cudnn_raises SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DDNNLayer::test_pad PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DMMLayer::test_import_without_gpu_raises SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DMMLayer::test_pad PASSED | |
lasagne/tests/layers/test_conv.py::TestConv2DCCLayer::test_import_without_gpu_raises SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DCCLayer::test_unsupported_settings SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DCCLayer::test_pad SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DCCLayer::test_dimshuffle_false_shapes SKIPPED | |
lasagne/tests/layers/test_conv.py::TestConv2DCCLayer::test_dimshuffle_false_get_output_for SKIPPED | |
lasagne/tests/layers/test_conv.py::TestShuffleLayers::test_bc01_to_c01b SKIPPED | |
lasagne/tests/layers/test_conv.py::TestShuffleLayers::test_c01b_to_bc01 SKIPPED | |
lasagne/tests/layers/test_dense.py SKIPPED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_init PASSED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_init_none_nonlinearity_bias PASSED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_get_params PASSED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_get_output_for_flattens_input PASSED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_param_names PASSED | |
lasagne/tests/layers/test_dense.py::TestDenseLayer::test_named_layer_param_names PASSED | |
lasagne/tests/layers/test_dense.py::TestNonlinearityLayer::test_init_none_nonlinearity PASSED | |
lasagne/tests/layers/test_dense.py::TestNonlinearityLayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_init PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_init_none_nonlinearity_bias PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_init_untie_biases PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_get_params PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_get_output_for[extra_kwargs0] PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_get_output_for[extra_kwargs1] PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_get_output_for[extra_kwargs2] PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_param_names PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer::test_named_layer_param_names PASSED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_init SKIPPED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_init_none_nonlinearity_bias SKIPPED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_init_untie_biases SKIPPED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_get_params SKIPPED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_get_output_shape_for SKIPPED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_get_output_for[extra_kwargs0] SKIPPED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_get_output_for[extra_kwargs1] SKIPPED | |
lasagne/tests/layers/test_dense.py::TestNINLayer_c01b::test_get_output_for[extra_kwargs2] SKIPPED | |
lasagne/tests/layers/test_embedding.py SKIPPED | |
lasagne/tests/layers/test_embedding.py::test_embedding_2D_input PASSED | |
lasagne/tests/layers/test_embedding.py::test_embedding_1D_input PASSED | |
lasagne/tests/layers/test_helper.py SKIPPED | |
lasagne/tests/layers/test_helper.py::TestGetAllLayers::test_stack PASSED | |
lasagne/tests/layers/test_helper.py::TestGetAllLayers::test_merge PASSED | |
lasagne/tests/layers/test_helper.py::TestGetAllLayers::test_split PASSED | |
lasagne/tests/layers/test_helper.py::TestGetAllLayers::test_bridge PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_InputLayer::test_get_output_without_arguments PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_InputLayer::test_get_output_input_is_variable PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_InputLayer::test_get_output_input_is_array PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_InputLayer::test_get_output_input_is_a_mapping PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_get_output_without_arguments PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_get_output_with_single_argument PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_get_output_input_is_a_mapping PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_get_output_input_is_a_mapping_no_key PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_get_output_input_is_a_mapping_to_array PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_get_output_input_is_a_mapping_for_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_get_output_input_is_a_mapping_for_input_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_layer_from_shape_invalid_get_output PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_Layer::test_layer_from_shape_valid_get_output PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_get_output_without_arguments PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_get_output_with_single_argument_fails PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_get_output_input_is_a_mapping PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_get_output_input_is_a_mapping_no_key PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_get_output_input_is_a_mapping_to_array PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_get_output_input_is_a_mapping_for_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_get_output_input_is_a_mapping_for_input_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_layer_from_shape_invalid_get_output PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutput_MergeLayer::test_layer_from_shape_valid_get_output PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_InputLayer::test_get_output_shape_without_arguments PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_InputLayer::test_get_output_shape_input_is_tuple PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_InputLayer::test_get_output_shape_input_is_a_mapping PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_Layer::test_get_output_shape_without_arguments PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_Layer::test_get_output_shape_with_single_argument PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_Layer::test_get_output_shape_input_is_a_mapping PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_Layer::test_get_output_shape_input_is_a_mapping_no_key PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_Layer::test_get_output_shape_input_is_a_mapping_for_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_Layer::test_get_output_shape_input_is_a_mapping_for_input_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_Layer::test_layer_from_shape PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_MergeLayer::test_get_output_shape_without_arguments PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_MergeLayer::test_get_output_shape_with_single_argument_fails PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_MergeLayer::test_get_output_shape_input_is_a_mapping PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_MergeLayer::test_get_output_shape_input_is_a_mapping_no_key PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_MergeLayer::test_get_output_shape_input_is_a_mapping_for_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_MergeLayer::test_get_output_shape_input_is_a_mapping_for_input_layer PASSED | |
lasagne/tests/layers/test_helper.py::TestGetOutputShape_MergeLayer::test_layer_from_shape_valid_get_output_shape PASSED | |
lasagne/tests/layers/test_helper.py::TestGetAllParams::test_get_all_params PASSED | |
lasagne/tests/layers/test_helper.py::TestCountParams::test_get_all_params PASSED | |
lasagne/tests/layers/test_helper.py::TestGetAllParamValues::test_get_all_param_values PASSED | |
lasagne/tests/layers/test_helper.py::TestSetAllParamValues::test_set_all_param_values PASSED | |
lasagne/tests/layers/test_input.py SKIPPED | |
lasagne/tests/layers/test_input.py::TestInputLayer::test_input_var PASSED | |
lasagne/tests/layers/test_input.py::TestInputLayer::test_shape PASSED | |
lasagne/tests/layers/test_input.py::TestInputLayer::test_input_var_name PASSED | |
lasagne/tests/layers/test_input.py::TestInputLayer::test_named_layer_input_var_name PASSED | |
lasagne/tests/layers/test_input.py::TestInputLayer::test_get_params PASSED | |
lasagne/tests/layers/test_input.py::TestInputLayer::test_bad_shape_fails PASSED | |
lasagne/tests/layers/test_merge.py SKIPPED | |
lasagne/tests/layers/test_merge.py::TestConcatLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_merge.py::TestConcatLayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_merge.py::TestElemwiseSumLayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_merge.py::TestElemwiseSumLayer::test_bad_coeffs_fails PASSED | |
lasagne/tests/layers/test_merge.py::TestElemwiseSumLayer::test_get_output_shape_for_fails PASSED | |
lasagne/tests/layers/test_merge.py::TestElemwiseMergeLayerMul::test_get_output_for PASSED | |
lasagne/tests/layers/test_merge.py::TestElemwiseMergeLayerMaximum::test_get_output_for PASSED | |
lasagne/tests/layers/test_noise.py SKIPPED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_non_deterministic[input_layer0] PASSED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_non_deterministic[input_layer1] PASSED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_deterministic[input_layer0] PASSED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_deterministic[input_layer1] PASSED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_no_rescale[input_layer0] PASSED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_no_rescale[input_layer1] PASSED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_p_02[input_layer0] PASSED | |
lasagne/tests/layers/test_noise.py::TestDropoutLayer::test_get_output_for_p_02[input_layer1] PASSED | |
lasagne/tests/layers/test_noise.py::TestGaussianNoiseLayer::test_get_output_for_non_deterministic PASSED | |
lasagne/tests/layers/test_noise.py::TestGaussianNoiseLayer::test_get_output_for_deterministic PASSED | |
lasagne/tests/layers/test_normalization.py SKIPPED | |
lasagne/tests/layers/test_normalization.py::TestLocalResponseNormalization2DLayer::test_get_params PASSED | |
lasagne/tests/layers/test_normalization.py::TestLocalResponseNormalization2DLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_normalization.py::TestLocalResponseNormalization2DLayer::test_even_n_fails PASSED | |
lasagne/tests/layers/test_normalization.py::TestLocalResponseNormalization2DLayer::test_normalization PASSED | |
lasagne/tests/layers/test_pool.py SKIPPED | |
lasagne/tests/layers/test_pool.py::TestFeaturePoolLayer::test_init_raises PASSED | |
lasagne/tests/layers/test_pool.py::TestFeaturePoolLayer::test_layer[2-1] PASSED | |
lasagne/tests/layers/test_pool.py::TestFeaturePoolLayer::test_layer[2-2] PASSED | |
lasagne/tests/layers/test_pool.py::TestFeaturePoolLayer::test_layer[3-1] PASSED | |
lasagne/tests/layers/test_pool.py::TestFeaturePoolLayer::test_layer[3-2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[2-1] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[2-2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[2-3] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[2-4] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[3-1] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[3-2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[3-3] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_and_shape_for[3-4] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-1-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-1-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-2-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-2-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-3-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-3-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-4-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[2-4-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-1-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-1-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-1-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-2-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-2-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-2-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-3-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-3-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-3-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-4-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-4-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_for_ignoreborder[3-4-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_shape_for[input_shape0] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_shape_for[input_shape1] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_shape_for[input_shape2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool1DLayer::test_get_output_shape_for[input_shape3] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[2-1] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[2-2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[2-3] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[2-4] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[3-1] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[3-2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[3-3] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for[3-4] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-1-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-1-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-2-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-2-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-3-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-3-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-4-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[2-4-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-1-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-1-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-1-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-2-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-2-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-2-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-3-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-3-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-3-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-4-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-4-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_for_ignoreborder[3-4-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_shape_for[input_shape0-output_shape0] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_shape_for[input_shape1-output_shape1] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_shape_for[input_shape2-output_shape2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_shape_for[input_shape3-output_shape3] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_shape_for[input_shape4-output_shape4] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DLayer::test_get_output_shape_for[input_shape5-output_shape5] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_for[2-1] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_for[2-2] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_for[3-1] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_for[3-2] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_for[3-3] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_shape_for[input_shape0-output_shape0] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_shape_for[input_shape1-output_shape1] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_shape_for[input_shape2-output_shape2] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_shape_for[input_shape3-output_shape3] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_shape_for[input_shape4-output_shape4] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_get_output_shape_for[input_shape5-output_shape5] SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_not_implemented SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DCCLayer::test_dimshuffle_false SKIPPED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-1-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-1-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-2-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-2-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-3-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-3-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-4-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[2-4-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-1-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-1-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-1-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-2-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-2-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-2-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-3-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-3-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-3-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-4-0] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-4-1] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_for_ignoreborder[3-4-2] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_shape_for[input_shape0-output_shape0] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_shape_for[input_shape1-output_shape1] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_shape_for[input_shape2-output_shape2] PASSED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_shape_for[input_shape3-output_shape3] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_shape_for[input_shape4-output_shape4] FAILED | |
lasagne/tests/layers/test_pool.py::TestMaxPool2DNNLayer::test_get_output_shape_for[input_shape5-output_shape5] FAILED | |
lasagne/tests/layers/test_pool.py::TestFeatureWTALayer::test_init_raises PASSED | |
lasagne/tests/layers/test_pool.py::TestFeatureWTALayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_pool.py::TestGlobalPoolLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_pool.py::TestGlobalPoolLayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_shape.py SKIPPED | |
lasagne/tests/layers/test_shape.py::TestFlattenLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_shape.py::TestFlattenLayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_shape.py::TestFlattenLayer::test_get_output_shape_for_outdim3 PASSED | |
lasagne/tests/layers/test_shape.py::TestFlattenLayer::test_get_output_for_outdim3 PASSED | |
lasagne/tests/layers/test_shape.py::TestFlattenLayer::test_get_output_shape_for_outdim1 PASSED | |
lasagne/tests/layers/test_shape.py::TestFlattenLayer::test_get_output_for_outdim1 PASSED | |
lasagne/tests/layers/test_shape.py::TestFlattenLayer::test_dim0_raises PASSED | |
lasagne/tests/layers/test_shape.py::TestPadLayer::test_get_output_shape_for PASSED | |
lasagne/tests/layers/test_shape.py::TestPadLayer::test_get_output_for PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_no_reference PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_reference_both PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_reference_one PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_reference_twice PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_merge_with_unknown PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_merge_two_unknowns PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_size_mismatch PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_invalid_spec PASSED | |
lasagne/tests/layers/test_shape.py::TestReshapeLayer::test_symbolic_shape PASSED | |
lasagne/tests/layers/test_shape.py::TestDimshuffleLayer::test_rearrange PASSED | |
lasagne/tests/layers/test_shape.py::TestDimshuffleLayer::test_broadcast PASSED | |
lasagne/tests/layers/test_shape.py::TestDimshuffleLayer::test_collapse PASSED | |
lasagne/tests/layers/test_shape.py::TestDimshuffleLayer::test_collapse_None PASSED | |
lasagne/tests/layers/test_shape.py::TestDimshuffleLayer::test_invalid_pattern PASSED | |
lasagne/tests/layers/test_shape.py::test_slice_layer PASSED | |
lasagne/theano_extensions/__init__.py SKIPPED | |
lasagne/theano_extensions/conv.py SKIPPED | |
lasagne/theano_extensions/padding.py SKIPPED | |
=================================== FAILURES =================================== | |
___________________________ test_example[mnist_conv] ___________________________ | |
example = None, module_name = 'mnist_conv' | |
@pytest.mark.slow | |
@pytest.mark.parametrize("module_name", _example_modules()) | |
def test_example(example, module_name): | |
try: | |
main = getattr(import_module(module_name), 'main') | |
except ImportError as e: | |
skip_exceptions = ["requires a GPU", "pylearn2", "dnn not available"] | |
if any([text in str(e) for text in skip_exceptions]): | |
pytest.skip(e) | |
else: | |
raise | |
> main(1) # run the example for one iteration | |
lasagne/tests/test_examples.py:38: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
examples/mnist_conv.py:110: in main | |
X_tensor_type=T.tensor4, | |
examples/mnist.py:148: in create_iter_functions | |
y_batch: dataset['y_train'][batch_slice], | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp9kGTGk/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stdout call ----------------------------- | |
Loading data... | |
Building model and compiling functions... | |
_________________________ test_example[mnist_conv_dnn] _________________________ | |
example = None, module_name = 'mnist_conv_dnn' | |
@pytest.mark.slow | |
@pytest.mark.parametrize("module_name", _example_modules()) | |
def test_example(example, module_name): | |
try: | |
main = getattr(import_module(module_name), 'main') | |
except ImportError as e: | |
skip_exceptions = ["requires a GPU", "pylearn2", "dnn not available"] | |
if any([text in str(e) for text in skip_exceptions]): | |
pytest.skip(e) | |
else: | |
raise | |
> main(1) # run the example for one iteration | |
lasagne/tests/test_examples.py:38: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
examples/mnist_conv_dnn.py:104: in main | |
X_tensor_type=T.tensor4, | |
examples/mnist.py:148: in create_iter_functions | |
y_batch: dataset['y_train'][batch_slice], | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpTQavmc/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stdout call ----------------------------- | |
Loading data... | |
Building model and compiling functions... | |
________________ TestNonlinearities.test_nonlinearity[softmax] _________________ | |
self = <test_nonlinearities.TestNonlinearities object at 0x7f074b388d90> | |
nonlinearity = 'softmax' | |
@pytest.mark.parametrize('nonlinearity', | |
['linear', 'rectify', | |
'leaky_rectify', 'sigmoid', | |
'tanh', 'softmax', | |
'leaky_rectify_0']) | |
def test_nonlinearity(self, nonlinearity): | |
import lasagne.nonlinearities | |
if nonlinearity == 'leaky_rectify_0': | |
from lasagne.nonlinearities import LeakyRectify | |
theano_nonlinearity = LeakyRectify(leakiness=0) | |
else: | |
theano_nonlinearity = getattr(lasagne.nonlinearities, | |
nonlinearity) | |
np_nonlinearity = getattr(self, nonlinearity) | |
X = T.matrix() | |
X0 = lasagne.utils.floatX(np.random.uniform(-3, 3, (10, 10))) | |
> theano_result = theano_nonlinearity(X).eval({X: X0}) | |
lasagne/tests/test_nonlinearities.py:47: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpYk92yE/098256bac448c469f1a96db85c827ba5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnSoftmax{tensor_format='bc01', mode='channel', algo='accurate'}(GpuContiguous.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnSoftmax{tensor_format='bc01', mode='channel', algo='accurate'}(<CudaNdarrayType(float32, (False, False, True, True))>)]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
____________________________ test_conv[1-conv1d_sc] ____________________________ | |
impl = 'conv1d_sc', stride = 1 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpyCl2D5/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, True, False, False))>, <CudaNdarrayType(float32, (False, True, False, False))>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
___________________________ test_conv[1-conv1d_mc0] ____________________________ | |
impl = 'conv1d_mc0', stride = 1 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmphilT5L/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
___________________________ test_conv[1-conv1d_mc1] ____________________________ | |
impl = 'conv1d_mc1', stride = 1 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpRP5yjv/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, False, True))>, <CudaNdarrayType(float32, (False, False, False, True))>, <CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
________________________ test_conv[1-conv1d_unstrided] _________________________ | |
impl = 'conv1d_unstrided', stride = 1 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpB3Rhqw/aa1f6a97810bca535444b84dcba7f2ce.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=False}(GpuContiguous.0, GpuContiguous.0, CudaNdarrayConstant{[[[[ 0. 0. 0. 0. 0.]] | |
E | |
E [[ 0. 0. 0. 0. 0.]]]]}, Constant{<PyCObject...7}, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=False}(<CudaNdarrayType(float32, (True, True, True, False))>, <CudaNdarrayType(float32, (False, True, True, False))>, CudaNdarrayConstant{[[[[ 0. 0. 0. 0. 0.]]\n\n [[ 0. 0. 0. 0. 0.]]]]}, Constant{<PyCObject...7}, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
____________________________ test_conv[2-conv1d_sc] ____________________________ | |
impl = 'conv1d_sc', stride = 2 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp3lTegi/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, True, False, False))>, <CudaNdarrayType(float32, (False, True, False, False))>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
___________________________ test_conv[2-conv1d_mc0] ____________________________ | |
impl = 'conv1d_mc0', stride = 2 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp9autvJ/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
___________________________ test_conv[2-conv1d_mc1] ____________________________ | |
impl = 'conv1d_mc1', stride = 2 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpwSJJHW/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, False, True))>, <CudaNdarrayType(float32, (False, False, False, True))>, <CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
________________________ test_conv[2-conv1d_unstrided] _________________________ | |
impl = 'conv1d_unstrided', stride = 2 | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', | |
'conv1d_mc1', 'conv1d_unstrided', | |
'conv1d_sd', 'conv1d_md']) | |
@pytest.mark.parametrize('stride', [1, 2]) | |
def test_conv(impl, stride): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 10))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6))) | |
conv_theano = conv(X, W, input.shape, kernel.shape, subsample=(stride,) | |
> ).eval({X: input, W: kernel}) | |
lasagne/tests/test_theano_extensions.py:21: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpDsZDC_/aa1f6a97810bca535444b84dcba7f2ce.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=False}(GpuContiguous.0, GpuContiguous.0, CudaNdarrayConstant{[[[[ 0. 0. 0.]] | |
E | |
E [[ 0. 0. 0.]]]]}, Constant{<PyCObject...7}, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=False}(<CudaNdarrayType(float32, (True, True, False, False))>, <CudaNdarrayType(float32, (False, True, False, False))>, CudaNdarrayConstant{[[[[ 0. 0. 0.]]\n\n [[ 0. 0. 0.]]]]}, Constant{<PyCObject...7}, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________________________ test_conv_nones[conv1d_sc] __________________________ | |
impl = 'conv1d_sc' | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', 'conv1d_mc1']) | |
def test_conv_nones(impl): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 12))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 3))) | |
conv_theano = conv(X, W, None, None).eval({ | |
> X: input, W: kernel | |
}) | |
lasagne/tests/test_theano_extensions.py:46: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpZuA0Nc/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, True, False, False))>, <CudaNdarrayType(float32, (False, True, False, False))>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_________________________ test_conv_nones[conv1d_mc0] __________________________ | |
impl = 'conv1d_mc0' | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', 'conv1d_mc1']) | |
def test_conv_nones(impl): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 12))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 3))) | |
conv_theano = conv(X, W, None, None).eval({ | |
> X: input, W: kernel | |
}) | |
lasagne/tests/test_theano_extensions.py:46: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpEHP4gq/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_________________________ test_conv_nones[conv1d_mc1] __________________________ | |
impl = 'conv1d_mc1' | |
@pytest.mark.parametrize('impl', ['conv1d_sc', 'conv1d_mc0', 'conv1d_mc1']) | |
def test_conv_nones(impl): | |
import lasagne.theano_extensions.conv | |
conv = getattr(lasagne.theano_extensions.conv, impl) | |
X = T.tensor3() | |
W = T.tensor3() | |
input = lasagne.utils.floatX(np.ones((1, 1, 12))) | |
kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 3))) | |
conv_theano = conv(X, W, None, None).eval({ | |
> X: input, W: kernel | |
}) | |
lasagne/tests/test_theano_extensions.py:46: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpwcs9VQ/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, False, True))>, <CudaNdarrayType(float32, (False, False, False, True))>, <CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input0-kernel0-output0-kwargs0] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f07537bd998> | |
DummyInputLayer = <function factory at 0x7f074b4022a8> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.64963579, 0.01028769, 0.78596401]], | |
[[ 0.52849889, 0.19....38837716]], | |
[[ 0.25575998, 0.28015122, 0.56748515]]], dtype=float32) | |
output = array([[[ 0.78015984, 0.66427343, 0.63116174, ..., 0.2848706 , | |
0.....45280076, 0.52133426, ..., 0.93113681, | |
0.87725741, 0.96705879]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpjMRhjD/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input1-kernel1-output1-kwargs1] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074b559368> | |
DummyInputLayer = <function factory at 0x7f074b690500> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.63277334, 0.35686681, 0.86389226]], | |
[[ 0.63185322, 0.62....56786406]], | |
[[ 0.28574872, 0.79867136, 0.97170323]]], dtype=float32) | |
output = array([[[ 0.84792429, 1.41576168, 0.77959029, 0.30882265, 1.00420698, | |
...4, 0.61378554, 0.43248248, 1.31844565, 0.60170226, | |
0.9541098 ]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpHjtlab/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input2-kernel2-output2-kwargs2] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074b711950> | |
DummyInputLayer = <function factory at 0x7f0750182668> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.54257226, 0.13297278, 0.61022645]], | |
[[ 0.97237849, 0.99....10551959]], | |
[[ 0.14404236, 0.03753835, 0.25283068]]], dtype=float32) | |
output = array([[[ 0.24687168, 0.83370617, 0.83407676, 0.8250161 , 0.59827485, | |
...3, 0.26845336, 0.25945173, 0.07977629, | |
0.31922004, 0.19496385]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpxDVNus/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input3-kernel3-output3-kwargs3] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f0757ce5638> | |
DummyInputLayer = <function factory at 0x7f074b31f578> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.77571785, 0.51820272, 0.07494386]], | |
[[ 0.3216275 , 0.41....65243977]], | |
[[ 0.4733443 , 0.16194472, 0.0191845 ]]], dtype=float32) | |
output = array([[[ 0.26460587, 0.19152563, 0.51036195, ..., 0.64288301, | |
0.....42888474, 0.43924785, ..., 0.45291937, | |
0.13274871, 0.01452201]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpaYfBVM/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input4-kernel4-output4-kwargs4] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074b54dfc8> | |
DummyInputLayer = <function factory at 0x7f074f1d9b18> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.73768735, 0.85327321, 0.43032497]], | |
[[ 0.12701434, 0.79....91380817]], | |
[[ 0.67531186, 0.47191623, 0.70070314]]], dtype=float32) | |
output = array([[[ 4.31894850e-01, 5.14293936e-01, 1.18520483e+00, | |
1.22...78996344e-01, 1.10196179e+00, 5.51747850e-01, | |
1.21948336e-02]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpUT_hr7/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(1, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input5-kernel5-output5-kwargs5] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074b6a43b0> | |
DummyInputLayer = <function factory at 0x7f074b375f50> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.82564104, 0.75004423, 0.08297599]], | |
[[ 0.74946803, 0.19....68344396]], | |
[[ 0.40689752, 0.26027337, 0.51891565]]], dtype=float32) | |
output = array([[[ 0.07315413, 0.69269252, 1.07455179, 0.9711776 , 0.90329191, | |
...3, 0.59413304, | |
0.71506505, 0.52822389, 0.52269631, 0.03823414]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpEEMJig/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(1, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input6-kernel6-output6-kwargs6] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074b450128> | |
DummyInputLayer = <function factory at 0x7f074f1dcb90> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.10588064, 0.00143 , 0.17947532]], | |
[[ 0.4038069 , 0.29....63980627]], | |
[[ 0.17948499, 0.46043828, 0.32451862]]], dtype=float32) | |
output = array([[[ 0.09415325, 0.2182002 , 0.22053436, ..., 0.17525154, | |
0.....72209731, 0.68818221, ..., 0.3094673 , | |
0.27473299, 0.14826196]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpy5imih/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs0-input9-kernel9-output9-kwargs9] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074e39a7a0> | |
DummyInputLayer = <function factory at 0x7f074f1607d0> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.23730892, 0.99213523, 0.66683155]], | |
[[ 0.88899034, 0.36....62616074]], | |
[[ 0.24949597, 0.03891722, 0.31969178]]], dtype=float32) | |
output = array([[[ 0.94262861, 1.14824287, 1.49002675, ..., 1.01895024, | |
0.....28845306, 0.19115312, ..., 0.17932384, | |
0.18474856, 0.25791619]]]) | |
kwargs = {'b': None}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp63lOkA/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stderr call ----------------------------- | |
INFO (theano.gof.compilelock): Refreshing lock /home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/lock_dir/lock | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input0-kernel0-output0-kwargs0] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f07502f3758> | |
DummyInputLayer = <function factory at 0x7f07537ef668> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.64963579, 0.01028769, 0.78596401]], | |
[[ 0.52849889, 0.19....38837716]], | |
[[ 0.25575998, 0.28015122, 0.56748515]]], dtype=float32) | |
output = array([[[ 0.78015984, 0.66427343, 0.63116174, ..., 0.2848706 , | |
0.....45280076, 0.52133426, ..., 0.93113681, | |
0.87725741, 0.96705879]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp2ANbX4/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input1-kernel1-output1-kwargs1] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074b43fb48> | |
DummyInputLayer = <function factory at 0x7f074b375f50> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.63277334, 0.35686681, 0.86389226]], | |
[[ 0.63185322, 0.62....56786406]], | |
[[ 0.28574872, 0.79867136, 0.97170323]]], dtype=float32) | |
output = array([[[ 0.84792429, 1.41576168, 0.77959029, 0.30882265, 1.00420698, | |
...4, 0.61378554, 0.43248248, 1.31844565, 0.60170226, | |
0.9541098 ]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp22ZSV4/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input2-kernel2-output2-kwargs2] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f0757cfc9e0> | |
DummyInputLayer = <function factory at 0x7f07501f8578> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.54257226, 0.13297278, 0.61022645]], | |
[[ 0.97237849, 0.99....10551959]], | |
[[ 0.14404236, 0.03753835, 0.25283068]]], dtype=float32) | |
output = array([[[ 0.24687168, 0.83370617, 0.83407676, 0.8250161 , 0.59827485, | |
...3, 0.26845336, 0.25945173, 0.07977629, | |
0.31922004, 0.19496385]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp5wCQgx/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input3-kernel3-output3-kwargs3] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f0753488b90> | |
DummyInputLayer = <function factory at 0x7f074b6e68c0> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.77571785, 0.51820272, 0.07494386]], | |
[[ 0.3216275 , 0.41....65243977]], | |
[[ 0.4733443 , 0.16194472, 0.0191845 ]]], dtype=float32) | |
output = array([[[ 0.26460587, 0.19152563, 0.51036195, ..., 0.64288301, | |
0.....42888474, 0.43924785, ..., 0.45291937, | |
0.13274871, 0.01452201]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpjAdITI/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input4-kernel4-output4-kwargs4] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f075028e6c8> | |
DummyInputLayer = <function factory at 0x7f0753387c08> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.73768735, 0.85327321, 0.43032497]], | |
[[ 0.12701434, 0.79....91380817]], | |
[[ 0.67531186, 0.47191623, 0.70070314]]], dtype=float32) | |
output = array([[[ 4.31894850e-01, 5.14293936e-01, 1.18520483e+00, | |
1.22...78996344e-01, 1.10196179e+00, 5.51747850e-01, | |
1.21948336e-02]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmptZd1cw/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(1, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input5-kernel5-output5-kwargs5] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f074b3e0a28> | |
DummyInputLayer = <function factory at 0x7f074f160b18> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.82564104, 0.75004423, 0.08297599]], | |
[[ 0.74946803, 0.19....68344396]], | |
[[ 0.40689752, 0.26027337, 0.51891565]]], dtype=float32) | |
output = array([[[ 0.07315413, 0.69269252, 1.07455179, 0.9711776 , 0.90329191, | |
...3, 0.59413304, | |
0.71506505, 0.52822389, 0.52269631, 0.03823414]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpEoUzdd/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(1, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input6-kernel6-output6-kwargs6] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f075027fcf8> | |
DummyInputLayer = <function factory at 0x7f074b31f5f0> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.10588064, 0.00143 , 0.17947532]], | |
[[ 0.4038069 , 0.29....63980627]], | |
[[ 0.17948499, 0.46043828, 0.32451862]]], dtype=float32) | |
output = array([[[ 0.09415325, 0.2182002 , 0.22053436, ..., 0.17525154, | |
0.....72209731, 0.68818221, ..., 0.3094673 , | |
0.27473299, 0.14826196]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp4lc5Ic/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
_ TestConv1DLayer.test_defaults[extra_kwargs1-input9-kernel9-output9-kwargs9] __ | |
self = <test_conv.TestConv1DLayer instance at 0x7f07533e0680> | |
DummyInputLayer = <function factory at 0x7f07502b2668> | |
input = <CudaNdarrayType(float32, 3D)> | |
kernel = array([[[ 0.23730892, 0.99213523, 0.66683155]], | |
[[ 0.88899034, 0.36....62616074]], | |
[[ 0.24949597, 0.03891722, 0.31969178]]], dtype=float32) | |
output = array([[[ 0.94262861, 1.14824287, 1.49002675, ..., 1.01895024, | |
0.....28845306, 0.19115312, ..., 0.17932384, | |
0.18474856, 0.25791619]]]) | |
kwargs = {'b': None, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv1d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, w)) | |
try: | |
from lasagne.layers.conv import Conv1DLayer | |
layer = Conv1DLayer( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:138: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpPZwq3E/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CudaNdarrayType(float32, (False, False, True, False))>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input0-kernel0-output0-kwargs0] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750185ea8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b375230> | |
DummyInputLayer = <function factory at 0x7f074b375938> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.05444074e-01, 6.49980366e-01, 3.72155637e-01], | |
[ 9... [ 7.04721749e-01, 7.60349691e-01, 2.35197261e-01]]]], dtype=float32) | |
output = array([[[[ 2.82084181, 2.78378772, 3.16721669, ..., 2.50962287, | |
...6732672, 1.1074278 , ..., 1.81874916, | |
2.70208426, 2.9988151 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpEMR0pb/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input1-kernel1-output1-kwargs1] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07537bd908> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f1007d0> | |
DummyInputLayer = <function factory at 0x7f074f100758> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.40950954e-01, 4.85384434e-01, 3.69613260e-01], | |
[ 2... [ 4.55417722e-01, 5.97849429e-01, 1.37355894e-01]]]], dtype=float32) | |
output = array([[[[ 8.18811047, 6.46014358, 6.36703626, ..., 6.78441896, | |
...931, 7.97059 , ..., 7.08778966, | |
7.36433292, 6.91086299]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpbYWZDu/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input2-kernel2-output2-kwargs2] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b4275f0> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f1000c8> | |
DummyInputLayer = <function factory at 0x7f074f1006e0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.86549354, 0.93446034, 0.23564447], | |
[ 0.75047094, 0.66....4439674 ], | |
[ 0.52107358, 0.18190883, 0.2479291 ]]]], dtype=float32) | |
output = array([[[[ 3.18114471, 3.88576949, 3.66113403, ..., 2.96137043, | |
...8861225, 2.25010764, ..., 2.06250489, | |
2.49293539, 3.07179428]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpnpBk3f/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input3-kernel3-output3-kwargs3] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074f1c2878> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b3c7ed8> | |
DummyInputLayer = <function factory at 0x7f074b3c7b18> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.04261091, 0.46651158, 0.72848606], | |
[ 0.88798922, 0.09....95565921], | |
[ 0.4339878 , 0.49096844, 0.32470664]]]], dtype=float32) | |
output = array([[[[ 8.49759597, 7.06907441, 6.83835942, ..., 8.09000989, | |
...854, 6.17641758, ..., 8.65233119, | |
6.9437854 , 8.28467359]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpC7BP_D/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input4-kernel4-output4-kwargs4] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07588b7d40> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b31f2a8> | |
DummyInputLayer = <function factory at 0x7f074b31f668> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.87903374, 0.54216796, 0.29834428], | |
[ 0.59091246, 0.17....29777423], | |
[ 0.37864318, 0.28561363, 0.75036669]]]], dtype=float32) | |
output = array([[[[ 2.52878468, 1.9794419 , 2.85386843, ..., 1.44003823, | |
...9432095, 1.60243141, ..., 1.66664642, | |
1.84795536, 1.2105042 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpN84Rrl/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input5-kernel5-output5-kwargs5] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074f172368> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074fd06398> | |
DummyInputLayer = <function factory at 0x7f074fd06578> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 8.82612765e-02, 8.82281780e-01, 3.17083329e-01], | |
[ 5... [ 9.47135508e-01, 5.31122148e-01, 8.44635665e-01]]]], dtype=float32) | |
output = array([[[[ 7.85212584, 8.611691 , 9.0100428 , ..., 7.60080327, | |
...909, 7.02600994, ..., 7.30783477, | |
8.77930186, 6.82584954]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmptWJ8bG/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input6-kernel6-output6-kwargs6] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753360f38> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f1d97d0> | |
DummyInputLayer = <function factory at 0x7f074f1d9410> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.80297172, 0.89004546, 0.1927713 ], | |
[ 0.05927956, 0.34....6759333 ], | |
[ 0.47758746, 0.01616771, 0.09955196]]]], dtype=float32) | |
output = array([[[[ 0.18230149, 0.41108841, 0.27889951, ..., 0.54523728, | |
...2581451, 0.31996357, ..., 0.09741915, | |
0.03175863, 0.01407091]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpyLNmmi/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input7-kernel7-output7-kwargs7] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e307c20> | |
Conv2DImpl = <function Conv2DLayer at 0x7f07532a0ed8> | |
DummyInputLayer = <function factory at 0x7f07532a00c8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.27915359e-01, 9.80152965e-01, 6.51710510e-01], | |
[ 3... [ 8.22985053e-01, 6.39385581e-01, 8.10097516e-01]]]], dtype=float32) | |
output = array([[[[ 0.6435191 , 1.67809617, 3.04524733, ..., 2.8577119 , | |
...776, 1.61864672, ..., 1.21392929, | |
0.6620918 , 0.21014737]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpukDEJV/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input8-kernel8-output8-kwargs8] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07532402d8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f149230> | |
DummyInputLayer = <function factory at 0x7f074f1498c0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.59161043, 0.04333187, 0.14165686], | |
[ 0.55536044, 0.46....58454573], | |
[ 0.24282594, 0.9195556 , 0.90022779]]]], dtype=float32) | |
output = array([[[[ 0.30447979, 0.32986283, 0.11419784, ..., 0.08327029, | |
...7935015, 1.95550125, ..., 1.91372794, | |
1.7683054 , 0.55369685]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpWby82H/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input9-kernel9-output9-kwargs9] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07532a6b90> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b6e65f0> | |
DummyInputLayer = <function factory at 0x7f074b6e6aa0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.88614994, 0.0797027 , 0.2248904 ], | |
[ 0.9545083 , 0.74....96548259], | |
[ 0.28338769, 0.87503159, 0.76990271]]]], dtype=float32) | |
output = array([[[[ 0.83068781, 1.55661158, 1.37260896, ..., 1.32035268, | |
...259, 5.52110738, ..., 6.04150213, | |
6.12498523, 2.11248871]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpUCZbYH/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input10-kernel10-output10-kwargs10] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0757faf7a0> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f149a28> | |
DummyInputLayer = <function factory at 0x7f074f1497d0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.46916708, 0.02788365, 0.49945453], | |
[ 0.59457099, 0.02....03542014], | |
[ 0.637124 , 0.22959097, 0.51000756]]]], dtype=float32) | |
output = array([[[[ 0.08298302, 0.70464411, 0.84335081, ..., 0.40547353, | |
...7918016, 1.2575624 , ..., 1.66360289, | |
2.38666767, 0.11057628]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpW7o26P/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input11-kernel11-output11-kwargs11] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e354998> | |
Conv2DImpl = <function Conv2DLayer at 0x7f07502b26e0> | |
DummyInputLayer = <function factory at 0x7f07502b27d0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.15331073, 0.59260333, 0.02018777], | |
[ 0.3059746 , 0.51....06191455], | |
[ 0.81505626, 0.74833345, 0.03076736]]]], dtype=float32) | |
output = array([[[[ 0.48502469, 2.33558619, 1.28072603, ..., 0.89633389, | |
...6039809, 7.85256973, ..., 7.34854052, | |
6.96695405, 1.24752481]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpg1AnfN/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input12-kernel12-output12-kwargs12] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e2d7d40> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f149230> | |
DummyInputLayer = <function factory at 0x7f07502b22a8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.05651152, 0.16396201, 0.81257474], | |
[ 0.58164185, 0.84....56959301], | |
[ 0.37702835, 0.44428828, 0.00985863]]]], dtype=float32) | |
output = array([[[[ 0.33532834, 1.21016069, 1.2087567 , ..., 2.32805648, | |
...9437468, 0.90767973, ..., 0.90708574, | |
1.16108791, 1.05857795]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpVgOrSf/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input13-kernel13-output13-kwargs13] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b1bd5a8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f1d9c80> | |
DummyInputLayer = <function factory at 0x7f074f1d97d0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.59807742e-01, 1.36207864e-01, 7.81622171e-01], | |
[ 8... [ 4.63257134e-01, 3.69128376e-01, 3.10897261e-01]]]], dtype=float32) | |
output = array([[[[ 3.06153811, 4.64433264, 4.11741079, ..., 5.91807217, | |
...0044345, 3.9793804 , ..., 4.28083895, | |
5.75493459, 3.73153901]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmppGb2w6/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs0-input18-kernel18-output18-kwargs18] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075373fc68> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0754d17230> | |
DummyInputLayer = <function factory at 0x7f074b3c70c8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.81262159, 0.80527252, 0.04687421], | |
[ 0.56520224, 0.10....18079817], | |
[ 0.79939127, 0.51304603, 0.82134598]]]], dtype=float32) | |
output = array([[[[ 1.49556581, 0.87160055, 1.61954807, ..., 3.43778329, | |
...4927586, 2.20330196, ..., 2.044964 , | |
1.97783503, 2.13434232]]]]) | |
kwargs = {'b': None}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpwHNuQh/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stderr call ----------------------------- | |
INFO (theano.gof.compilelock): Refreshing lock /home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/lock_dir/lock | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input0-kernel0-output0-kwargs0] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075380a200> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b3c7ed8> | |
DummyInputLayer = <function factory at 0x7f074b3c72a8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.05444074e-01, 6.49980366e-01, 3.72155637e-01], | |
[ 9... [ 7.04721749e-01, 7.60349691e-01, 2.35197261e-01]]]], dtype=float32) | |
output = array([[[[ 2.82084181, 2.78378772, 3.16721669, ..., 2.50962287, | |
...6732672, 1.1074278 , ..., 1.81874916, | |
2.70208426, 2.9988151 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp2xLRhc/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input1-kernel1-output1-kwargs1] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753395bd8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f07501f8848> | |
DummyInputLayer = <function factory at 0x7f07501f8c80> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.40950954e-01, 4.85384434e-01, 3.69613260e-01], | |
[ 2... [ 4.55417722e-01, 5.97849429e-01, 1.37355894e-01]]]], dtype=float32) | |
output = array([[[[ 8.18811047, 6.46014358, 6.36703626, ..., 6.78441896, | |
...931, 7.97059 , ..., 7.08778966, | |
7.36433292, 6.91086299]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpJQCF97/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input2-kernel2-output2-kwargs2] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07537afc20> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b690cf8> | |
DummyInputLayer = <function factory at 0x7f074b690320> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.86549354, 0.93446034, 0.23564447], | |
[ 0.75047094, 0.66....4439674 ], | |
[ 0.52107358, 0.18190883, 0.2479291 ]]]], dtype=float32) | |
output = array([[[[ 3.18114471, 3.88576949, 3.66113403, ..., 2.96137043, | |
...8861225, 2.25010764, ..., 2.06250489, | |
2.49293539, 3.07179428]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpnSrL2k/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input3-kernel3-output3-kwargs3] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753815ea8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b375578> | |
DummyInputLayer = <function factory at 0x7f074b375b18> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.04261091, 0.46651158, 0.72848606], | |
[ 0.88798922, 0.09....95565921], | |
[ 0.4339878 , 0.49096844, 0.32470664]]]], dtype=float32) | |
output = array([[[[ 8.49759597, 7.06907441, 6.83835942, ..., 8.09000989, | |
...854, 6.17641758, ..., 8.65233119, | |
6.9437854 , 8.28467359]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpdJPsNs/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input4-kernel4-output4-kwargs4] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0754f648c0> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b3c7320> | |
DummyInputLayer = <function factory at 0x7f074b3c7938> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.87903374, 0.54216796, 0.29834428], | |
[ 0.59091246, 0.17....29777423], | |
[ 0.37864318, 0.28561363, 0.75036669]]]], dtype=float32) | |
output = array([[[[ 2.52878468, 1.9794419 , 2.85386843, ..., 1.44003823, | |
...9432095, 1.60243141, ..., 1.66664642, | |
1.84795536, 1.2105042 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpXTNQEm/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input5-kernel5-output5-kwargs5] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075328b050> | |
Conv2DImpl = <function Conv2DLayer at 0x7f07501f8aa0> | |
DummyInputLayer = <function factory at 0x7f07501f8758> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 8.82612765e-02, 8.82281780e-01, 3.17083329e-01], | |
[ 5... [ 9.47135508e-01, 5.31122148e-01, 8.44635665e-01]]]], dtype=float32) | |
output = array([[[[ 7.85212584, 8.611691 , 9.0100428 , ..., 7.60080327, | |
...909, 7.02600994, ..., 7.30783477, | |
8.77930186, 6.82584954]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmplKAT4y/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input6-kernel6-output6-kwargs6] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753a3a3f8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b31f668> | |
DummyInputLayer = <function factory at 0x7f074b31fc80> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.80297172, 0.89004546, 0.1927713 ], | |
[ 0.05927956, 0.34....6759333 ], | |
[ 0.47758746, 0.01616771, 0.09955196]]]], dtype=float32) | |
output = array([[[[ 0.18230149, 0.41108841, 0.27889951, ..., 0.54523728, | |
...2581451, 0.31996357, ..., 0.09741915, | |
0.03175863, 0.01407091]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpag0LJM/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input7-kernel7-output7-kwargs7] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07537863b0> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b3c7230> | |
DummyInputLayer = <function factory at 0x7f074b3c7b18> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.27915359e-01, 9.80152965e-01, 6.51710510e-01], | |
[ 3... [ 8.22985053e-01, 6.39385581e-01, 8.10097516e-01]]]], dtype=float32) | |
output = array([[[[ 0.6435191 , 1.67809617, 3.04524733, ..., 2.8577119 , | |
...776, 1.61864672, ..., 1.21392929, | |
0.6620918 , 0.21014737]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpsBZ2HT/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input8-kernel8-output8-kwargs8] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750133c68> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0753387e60> | |
DummyInputLayer = <function factory at 0x7f0753387668> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.59161043, 0.04333187, 0.14165686], | |
[ 0.55536044, 0.46....58454573], | |
[ 0.24282594, 0.9195556 , 0.90022779]]]], dtype=float32) | |
output = array([[[[ 0.30447979, 0.32986283, 0.11419784, ..., 0.08327029, | |
...7935015, 1.95550125, ..., 1.91372794, | |
1.7683054 , 0.55369685]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp7hHofv/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input9-kernel9-output9-kwargs9] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07576933f8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f149c80> | |
DummyInputLayer = <function factory at 0x7f074f149cf8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.88614994, 0.0797027 , 0.2248904 ], | |
[ 0.9545083 , 0.74....96548259], | |
[ 0.28338769, 0.87503159, 0.76990271]]]], dtype=float32) | |
output = array([[[[ 0.83068781, 1.55661158, 1.37260896, ..., 1.32035268, | |
...259, 5.52110738, ..., 6.04150213, | |
6.12498523, 2.11248871]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpWkX6hP/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input10-kernel10-output10-kwargs10] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0754f915f0> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0754d17de8> | |
DummyInputLayer = <function factory at 0x7f0754d17b90> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.46916708, 0.02788365, 0.49945453], | |
[ 0.59457099, 0.02....03542014], | |
[ 0.637124 , 0.22959097, 0.51000756]]]], dtype=float32) | |
output = array([[[[ 0.08298302, 0.70464411, 0.84335081, ..., 0.40547353, | |
...7918016, 1.2575624 , ..., 1.66360289, | |
2.38666767, 0.11057628]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpUTvXH7/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input11-kernel11-output11-kwargs11] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750d5bc68> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b690d70> | |
DummyInputLayer = <function factory at 0x7f074b690410> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.15331073, 0.59260333, 0.02018777], | |
[ 0.3059746 , 0.51....06191455], | |
[ 0.81505626, 0.74833345, 0.03076736]]]], dtype=float32) | |
output = array([[[[ 0.48502469, 2.33558619, 1.28072603, ..., 0.89633389, | |
...6039809, 7.85256973, ..., 7.34854052, | |
6.96695405, 1.24752481]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpn9Wtys/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input12-kernel12-output12-kwargs12] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074f0c3998> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f160a28> | |
DummyInputLayer = <function factory at 0x7f074f160848> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.05651152, 0.16396201, 0.81257474], | |
[ 0.58164185, 0.84....56959301], | |
[ 0.37702835, 0.44428828, 0.00985863]]]], dtype=float32) | |
output = array([[[[ 0.33532834, 1.21016069, 1.2087567 , ..., 2.32805648, | |
...9437468, 0.90767973, ..., 0.90708574, | |
1.16108791, 1.05857795]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp_2g1ns/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input13-kernel13-output13-kwargs13] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b6027a0> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f1495f0> | |
DummyInputLayer = <function factory at 0x7f074f149938> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.59807742e-01, 1.36207864e-01, 7.81622171e-01], | |
[ 8... [ 4.63257134e-01, 3.69128376e-01, 3.10897261e-01]]]], dtype=float32) | |
output = array([[[[ 3.06153811, 4.64433264, 4.11741079, ..., 5.91807217, | |
...0044345, 3.9793804 , ..., 4.28083895, | |
5.75493459, 3.73153901]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpoIKMzq/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl0-extra_kwargs1-input18-kernel18-output18-kwargs18] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b4cbd40> | |
Conv2DImpl = <function Conv2DLayer at 0x7f07501f8b18> | |
DummyInputLayer = <function factory at 0x7f07501f8de8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.81262159, 0.80527252, 0.04687421], | |
[ 0.56520224, 0.10....18079817], | |
[ 0.79939127, 0.51304603, 0.82134598]]]], dtype=float32) | |
output = array([[[[ 1.49556581, 0.87160055, 1.61954807, ..., 3.43778329, | |
...4927586, 2.20330196, ..., 2.044964 , | |
1.97783503, 2.13434232]]]]) | |
kwargs = {'b': None, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpx7zRKN/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input0-kernel0-output0-kwargs0] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753395638> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074fd06050> | |
DummyInputLayer = <function factory at 0x7f074f102ed8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.05444074e-01, 6.49980366e-01, 3.72155637e-01], | |
[ 9... [ 7.04721749e-01, 7.60349691e-01, 2.35197261e-01]]]], dtype=float32) | |
output = array([[[[ 2.82084181, 2.78378772, 3.16721669, ..., 2.50962287, | |
...6732672, 1.1074278 , ..., 1.81874916, | |
2.70208426, 2.9988151 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpTAS5LM/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input1-kernel1-output1-kwargs1] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e2c3440> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f1ac80> | |
DummyInputLayer = <function factory at 0x7f0757f1a488> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.40950954e-01, 4.85384434e-01, 3.69613260e-01], | |
[ 2... [ 4.55417722e-01, 5.97849429e-01, 1.37355894e-01]]]], dtype=float32) | |
output = array([[[[ 8.18811047, 6.46014358, 6.36703626, ..., 6.78441896, | |
...931, 7.97059 , ..., 7.08778966, | |
7.36433292, 6.91086299]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpaGh_j_/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input2-kernel2-output2-kwargs2] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750255d40> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b3c2758> | |
DummyInputLayer = <function factory at 0x7f074b3c21b8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.86549354, 0.93446034, 0.23564447], | |
[ 0.75047094, 0.66....4439674 ], | |
[ 0.52107358, 0.18190883, 0.2479291 ]]]], dtype=float32) | |
output = array([[[[ 3.18114471, 3.88576949, 3.66113403, ..., 2.96137043, | |
...8861225, 2.25010764, ..., 2.06250489, | |
2.49293539, 3.07179428]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp8uU8A8/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input3-kernel3-output3-kwargs3] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b1c83f8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f1a7d0> | |
DummyInputLayer = <function factory at 0x7f0757f1ab18> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.04261091, 0.46651158, 0.72848606], | |
[ 0.88798922, 0.09....95565921], | |
[ 0.4339878 , 0.49096844, 0.32470664]]]], dtype=float32) | |
output = array([[[[ 8.49759597, 7.06907441, 6.83835942, ..., 8.09000989, | |
...854, 6.17641758, ..., 8.65233119, | |
6.9437854 , 8.28467359]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpiNPd9R/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input4-kernel4-output4-kwargs4] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074eeb03f8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074e391410> | |
DummyInputLayer = <function factory at 0x7f074e3912a8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.87903374, 0.54216796, 0.29834428], | |
[ 0.59091246, 0.17....29777423], | |
[ 0.37864318, 0.28561363, 0.75036669]]]], dtype=float32) | |
output = array([[[[ 2.52878468, 1.9794419 , 2.85386843, ..., 1.44003823, | |
...9432095, 1.60243141, ..., 1.66664642, | |
1.84795536, 1.2105042 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmphveYHI/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input5-kernel5-output5-kwargs5] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0755bf4cf8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074f1605f0> | |
DummyInputLayer = <function factory at 0x7f074f160a28> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 8.82612765e-02, 8.82281780e-01, 3.17083329e-01], | |
[ 5... [ 9.47135508e-01, 5.31122148e-01, 8.44635665e-01]]]], dtype=float32) | |
output = array([[[[ 7.85212584, 8.611691 , 9.0100428 , ..., 7.60080327, | |
...909, 7.02600994, ..., 7.30783477, | |
8.77930186, 6.82584954]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpHqvWFr/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input6-kernel6-output6-kwargs6] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750d54710> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b679e60> | |
DummyInputLayer = <function factory at 0x7f074b6795f0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.80297172, 0.89004546, 0.1927713 ], | |
[ 0.05927956, 0.34....6759333 ], | |
[ 0.47758746, 0.01616771, 0.09955196]]]], dtype=float32) | |
output = array([[[[ 0.18230149, 0.41108841, 0.27889951, ..., 0.54523728, | |
...2581451, 0.31996357, ..., 0.09741915, | |
0.03175863, 0.01407091]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpQFIKWs/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stderr call ----------------------------- | |
INFO (theano.gof.compilelock): Refreshing lock /home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/lock_dir/lock | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input7-kernel7-output7-kwargs7] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b71c3b0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074f1d96e0> | |
DummyInputLayer = <function factory at 0x7f074b3c2578> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.27915359e-01, 9.80152965e-01, 6.51710510e-01], | |
[ 3... [ 8.22985053e-01, 6.39385581e-01, 8.10097516e-01]]]], dtype=float32) | |
output = array([[[[ 0.6435191 , 1.67809617, 3.04524733, ..., 2.8577119 , | |
...776, 1.61864672, ..., 1.21392929, | |
0.6620918 , 0.21014737]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp4qjkF2/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input8-kernel8-output8-kwargs8] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075027f248> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f1aed8> | |
DummyInputLayer = <function factory at 0x7f0757f1a2a8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.59161043, 0.04333187, 0.14165686], | |
[ 0.55536044, 0.46....58454573], | |
[ 0.24282594, 0.9195556 , 0.90022779]]]], dtype=float32) | |
output = array([[[[ 0.30447979, 0.32986283, 0.11419784, ..., 0.08327029, | |
...7935015, 1.95550125, ..., 1.91372794, | |
1.7683054 , 0.55369685]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp7hrTNi/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input9-kernel9-output9-kwargs9] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075028e440> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b3f5ed8> | |
DummyInputLayer = <function factory at 0x7f074f160a28> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.88614994, 0.0797027 , 0.2248904 ], | |
[ 0.9545083 , 0.74....96548259], | |
[ 0.28338769, 0.87503159, 0.76990271]]]], dtype=float32) | |
output = array([[[[ 0.83068781, 1.55661158, 1.37260896, ..., 1.32035268, | |
...259, 5.52110738, ..., 6.04150213, | |
6.12498523, 2.11248871]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp1N25Ko/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input10-kernel10-output10-kwargs10] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e3b1ab8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757fcc578> | |
DummyInputLayer = <function factory at 0x7f0757fccb18> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.46916708, 0.02788365, 0.49945453], | |
[ 0.59457099, 0.02....03542014], | |
[ 0.637124 , 0.22959097, 0.51000756]]]], dtype=float32) | |
output = array([[[[ 0.08298302, 0.70464411, 0.84335081, ..., 0.40547353, | |
...7918016, 1.2575624 , ..., 1.66360289, | |
2.38666767, 0.11057628]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpyXwkz1/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input11-kernel11-output11-kwargs11] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075326b680> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074e1ef320> | |
DummyInputLayer = <function factory at 0x7f074e1ef668> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.15331073, 0.59260333, 0.02018777], | |
[ 0.3059746 , 0.51....06191455], | |
[ 0.81505626, 0.74833345, 0.03076736]]]], dtype=float32) | |
output = array([[[[ 0.48502469, 2.33558619, 1.28072603, ..., 0.89633389, | |
...6039809, 7.85256973, ..., 7.34854052, | |
6.96695405, 1.24752481]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpyLt7pU/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input12-kernel12-output12-kwargs12] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750255bd8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f17c08> | |
DummyInputLayer = <function factory at 0x7f0757f17c80> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.05651152, 0.16396201, 0.81257474], | |
[ 0.58164185, 0.84....56959301], | |
[ 0.37702835, 0.44428828, 0.00985863]]]], dtype=float32) | |
output = array([[[[ 0.33532834, 1.21016069, 1.2087567 , ..., 2.32805648, | |
...9437468, 0.90767973, ..., 0.90708574, | |
1.16108791, 1.05857795]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpRnbLiy/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input13-kernel13-output13-kwargs13] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750272950> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074f1d96e0> | |
DummyInputLayer = <function factory at 0x7f0757fccc08> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.59807742e-01, 1.36207864e-01, 7.81622171e-01], | |
[ 8... [ 4.63257134e-01, 3.69128376e-01, 3.10897261e-01]]]], dtype=float32) | |
output = array([[[[ 3.06153811, 4.64433264, 4.11741079, ..., 5.91807217, | |
...0044345, 3.9793804 , ..., 4.28083895, | |
5.75493459, 3.73153901]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpx7yqzr/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input14-kernel14-output14-kwargs14] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0757cdaa28> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b75f0> | |
DummyInputLayer = <function factory at 0x7f074b6b7668> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.72667307, 0.58351141, 0.33648157], | |
[ 0.8872627 , 0.06....13450009], | |
[ 0.556714 , 0.84363556, 0.70544177]]]], dtype=float32) | |
output = array([[[[ 1.09475066, 1.48501993, 1.99700502, ..., 1.71423903, | |
...63434 , 2.27907236, ..., 2.95562074, | |
2.24122296, 1.18362688]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpKEN_ln/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input15-kernel15-output15-kwargs15] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07532b4098> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b69b140> | |
DummyInputLayer = <function factory at 0x7f074b69b1b8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 7.06182122e-01, 4.39137548e-01, 8.75751674e-03], | |
[ 2... [ 2.45689929e-01, 3.01859766e-01, 9.39631462e-01]]]], dtype=float32) | |
output = array([[[[ 3.41596442, 4.3247748 , 3.15891083, ..., 2.89668391, | |
...4027934, 7.51006194, ..., 8.36460125, | |
8.53604385, 5.24611576]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpaIBQoD/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input16-kernel16-output16-kwargs16] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e5278c0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f1a320> | |
DummyInputLayer = <function factory at 0x7f0757f1a488> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.77207953, 0.76312548, 0.78886229], | |
[ 0.79099512, 0.37....81778145], | |
[ 0.99981999, 0.47605109, 0.11652865]]]], dtype=float32) | |
output = array([[[[ 1.09057244, 1.00375899, 1.51513537, ..., 2.0781703 , | |
...3356373, 2.87069047, ..., 2.30400227, | |
1.52489405, 2.10985139]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpSf1lkz/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input17-kernel17-output17-kwargs17] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075338f878> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b3c2398> | |
DummyInputLayer = <function factory at 0x7f074b3c2f50> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 4.48846638e-01, 4.76592958e-01, 5.32170296e-01], | |
[ 2... [ 6.23369277e-01, 5.78325927e-01, 2.83740517e-02]]]], dtype=float32) | |
output = array([[[[ 2.62529755, 3.91556839, 3.90800456, ..., 3.99536019, | |
...257109 , 5.63373454, ..., 3.3221067 , | |
3.36792162, 4.17195803]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpur5y42/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs0-input18-kernel18-output18-kwargs18] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0754f88560> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b7938> | |
DummyInputLayer = <function factory at 0x7f074b3c2668> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.81262159, 0.80527252, 0.04687421], | |
[ 0.56520224, 0.10....18079817], | |
[ 0.79939127, 0.51304603, 0.82134598]]]], dtype=float32) | |
output = array([[[[ 1.49556581, 0.87160055, 1.61954807, ..., 3.43778329, | |
...4927586, 2.20330196, ..., 2.044964 , | |
1.97783503, 2.13434232]]]]) | |
kwargs = {'b': None, 'untie_biases': True}, extra_kwargs = {} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpu6A6uJ/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input0-kernel0-output0-kwargs0] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07532627e8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b7140> | |
DummyInputLayer = <function factory at 0x7f074b6b7230> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.05444074e-01, 6.49980366e-01, 3.72155637e-01], | |
[ 9... [ 7.04721749e-01, 7.60349691e-01, 2.35197261e-01]]]], dtype=float32) | |
output = array([[[[ 2.82084181, 2.78378772, 3.16721669, ..., 2.50962287, | |
...6732672, 1.1074278 , ..., 1.81874916, | |
2.70208426, 2.9988151 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpKo45Iy/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input1-kernel1-output1-kwargs1] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753433170> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b7500> | |
DummyInputLayer = <function factory at 0x7f074b6b75f0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.40950954e-01, 4.85384434e-01, 3.69613260e-01], | |
[ 2... [ 4.55417722e-01, 5.97849429e-01, 1.37355894e-01]]]], dtype=float32) | |
output = array([[[[ 8.18811047, 6.46014358, 6.36703626, ..., 6.78441896, | |
...931, 7.97059 , ..., 7.08778966, | |
7.36433292, 6.91086299]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpVa3XTl/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input2-kernel2-output2-kwargs2] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074fce64d0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074f1b1848> | |
DummyInputLayer = <function factory at 0x7f074f1b1488> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.86549354, 0.93446034, 0.23564447], | |
[ 0.75047094, 0.66....4439674 ], | |
[ 0.52107358, 0.18190883, 0.2479291 ]]]], dtype=float32) | |
output = array([[[[ 3.18114471, 3.88576949, 3.66113403, ..., 2.96137043, | |
...8861225, 2.25010764, ..., 2.06250489, | |
2.49293539, 3.07179428]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpkDNk2P/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input3-kernel3-output3-kwargs3] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07537bea70> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757fcc1b8> | |
DummyInputLayer = <function factory at 0x7f0757fcc488> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.04261091, 0.46651158, 0.72848606], | |
[ 0.88798922, 0.09....95565921], | |
[ 0.4339878 , 0.49096844, 0.32470664]]]], dtype=float32) | |
output = array([[[[ 8.49759597, 7.06907441, 6.83835942, ..., 8.09000989, | |
...854, 6.17641758, ..., 8.65233119, | |
6.9437854 , 8.28467359]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp1EA7oH/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input4-kernel4-output4-kwargs4] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0757cd9f38> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b78c0> | |
DummyInputLayer = <function factory at 0x7f074b6b7d70> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.87903374, 0.54216796, 0.29834428], | |
[ 0.59091246, 0.17....29777423], | |
[ 0.37864318, 0.28561363, 0.75036669]]]], dtype=float32) | |
output = array([[[[ 2.52878468, 1.9794419 , 2.85386843, ..., 1.44003823, | |
...9432095, 1.60243141, ..., 1.66664642, | |
1.84795536, 1.2105042 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpZ6K5G1/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input5-kernel5-output5-kwargs5] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e361128> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f1a0c8> | |
DummyInputLayer = <function factory at 0x7f0757f1ac08> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 8.82612765e-02, 8.82281780e-01, 3.17083329e-01], | |
[ 5... [ 9.47135508e-01, 5.31122148e-01, 8.44635665e-01]]]], dtype=float32) | |
output = array([[[[ 7.85212584, 8.611691 , 9.0100428 , ..., 7.60080327, | |
...909, 7.02600994, ..., 7.30783477, | |
8.77930186, 6.82584954]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpX4DZvs/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input6-kernel6-output6-kwargs6] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07536a1170> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074f1b1d70> | |
DummyInputLayer = <function factory at 0x7f074f1b1c08> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.80297172, 0.89004546, 0.1927713 ], | |
[ 0.05927956, 0.34....6759333 ], | |
[ 0.47758746, 0.01616771, 0.09955196]]]], dtype=float32) | |
output = array([[[[ 0.18230149, 0.41108841, 0.27889951, ..., 0.54523728, | |
...2581451, 0.31996357, ..., 0.09741915, | |
0.03175863, 0.01407091]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp7Xicdf/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input7-kernel7-output7-kwargs7] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753743908> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074f1d9aa0> | |
DummyInputLayer = <function factory at 0x7f074f1d9a28> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 5.27915359e-01, 9.80152965e-01, 6.51710510e-01], | |
[ 3... [ 8.22985053e-01, 6.39385581e-01, 8.10097516e-01]]]], dtype=float32) | |
output = array([[[[ 0.6435191 , 1.67809617, 3.04524733, ..., 2.8577119 , | |
...776, 1.61864672, ..., 1.21392929, | |
0.6620918 , 0.21014737]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpljr4wm/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input8-kernel8-output8-kwargs8] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075023f200> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b69bf50> | |
DummyInputLayer = <function factory at 0x7f074b69bcf8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.59161043, 0.04333187, 0.14165686], | |
[ 0.55536044, 0.46....58454573], | |
[ 0.24282594, 0.9195556 , 0.90022779]]]], dtype=float32) | |
output = array([[[[ 0.30447979, 0.32986283, 0.11419784, ..., 0.08327029, | |
...7935015, 1.95550125, ..., 1.91372794, | |
1.7683054 , 0.55369685]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp8nLAjk/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input9-kernel9-output9-kwargs9] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0757ff90e0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b7848> | |
DummyInputLayer = <function factory at 0x7f074b6b7410> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.88614994, 0.0797027 , 0.2248904 ], | |
[ 0.9545083 , 0.74....96548259], | |
[ 0.28338769, 0.87503159, 0.76990271]]]], dtype=float32) | |
output = array([[[[ 0.83068781, 1.55661158, 1.37260896, ..., 1.32035268, | |
...259, 5.52110738, ..., 6.04150213, | |
6.12498523, 2.11248871]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpuvNMnc/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input10-kernel10-output10-kwargs10] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f075326ba28> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b3c26e0> | |
DummyInputLayer = <function factory at 0x7f074b3c2c08> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.46916708, 0.02788365, 0.49945453], | |
[ 0.59457099, 0.02....03542014], | |
[ 0.637124 , 0.22959097, 0.51000756]]]], dtype=float32) | |
output = array([[[[ 0.08298302, 0.70464411, 0.84335081, ..., 0.40547353, | |
...7918016, 1.2575624 , ..., 1.66360289, | |
2.38666767, 0.11057628]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpf6oISV/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stderr call ----------------------------- | |
INFO (theano.gof.compilelock): Refreshing lock /home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/lock_dir/lock | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input11-kernel11-output11-kwargs11] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07534843b0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b69b8c0> | |
DummyInputLayer = <function factory at 0x7f074b69bed8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.15331073, 0.59260333, 0.02018777], | |
[ 0.3059746 , 0.51....06191455], | |
[ 0.81505626, 0.74833345, 0.03076736]]]], dtype=float32) | |
output = array([[[[ 0.48502469, 2.33558619, 1.28072603, ..., 0.89633389, | |
...6039809, 7.85256973, ..., 7.34854052, | |
6.96695405, 1.24752481]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpeitIAo/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input12-kernel12-output12-kwargs12] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e3523f8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b69b1b8> | |
DummyInputLayer = <function factory at 0x7f07501f8de8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.05651152, 0.16396201, 0.81257474], | |
[ 0.58164185, 0.84....56959301], | |
[ 0.37702835, 0.44428828, 0.00985863]]]], dtype=float32) | |
output = array([[[[ 0.33532834, 1.21016069, 1.2087567 , ..., 2.32805648, | |
...9437468, 0.90767973, ..., 0.90708574, | |
1.16108791, 1.05857795]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpsziuJY/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input13-kernel13-output13-kwargs13] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750126908> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b69bf50> | |
DummyInputLayer = <function factory at 0x7f0757fcc0c8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 6.59807742e-01, 1.36207864e-01, 7.81622171e-01], | |
[ 8... [ 4.63257134e-01, 3.69128376e-01, 3.10897261e-01]]]], dtype=float32) | |
output = array([[[[ 3.06153811, 4.64433264, 4.11741079, ..., 5.91807217, | |
...0044345, 3.9793804 , ..., 4.28083895, | |
5.75493459, 3.73153901]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpf1RVpZ/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input14-kernel14-output14-kwargs14] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e3a18c0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b7a28> | |
DummyInputLayer = <function factory at 0x7f074b6b7398> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.72667307, 0.58351141, 0.33648157], | |
[ 0.8872627 , 0.06....13450009], | |
[ 0.556714 , 0.84363556, 0.70544177]]]], dtype=float32) | |
output = array([[[[ 1.09475066, 1.48501993, 1.99700502, ..., 1.71423903, | |
...63434 , 2.27907236, ..., 2.95562074, | |
2.24122296, 1.18362688]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmptrVXqp/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input15-kernel15-output15-kwargs15] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750229cb0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b76e0> | |
DummyInputLayer = <function factory at 0x7f074b6b72a8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 7.06182122e-01, 4.39137548e-01, 8.75751674e-03], | |
[ 2... [ 2.45689929e-01, 3.01859766e-01, 9.39631462e-01]]]], dtype=float32) | |
output = array([[[[ 3.41596442, 4.3247748 , 3.15891083, ..., 2.89668391, | |
...4027934, 7.51006194, ..., 8.36460125, | |
8.53604385, 5.24611576]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 2, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpphPOhi/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input16-kernel16-output16-kwargs16] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b2d8cf8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757fcc8c0> | |
DummyInputLayer = <function factory at 0x7f0757fcc848> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.77207953, 0.76312548, 0.78886229], | |
[ 0.79099512, 0.37....81778145], | |
[ 0.99981999, 0.47605109, 0.11652865]]]], dtype=float32) | |
output = array([[[[ 1.09057244, 1.00375899, 1.51513537, ..., 2.0781703 , | |
...3356373, 2.87069047, ..., 2.30400227, | |
1.52489405, 2.10985139]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpU4bsZH/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input17-kernel17-output17-kwargs17] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b29d560> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f1aed8> | |
DummyInputLayer = <function factory at 0x7f0757f1a140> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 4.48846638e-01, 4.76592958e-01, 5.32170296e-01], | |
[ 2... [ 6.23369277e-01, 5.78325927e-01, 2.83740517e-02]]]], dtype=float32) | |
output = array([[[[ 2.62529755, 3.91556839, 3.90800456, ..., 3.99536019, | |
...257109 , 5.63373454, ..., 3.3221067 , | |
3.36792162, 4.17195803]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 3, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpt223za/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_defaults[Conv2DImpl3-extra_kwargs1-input18-kernel18-output18-kwargs18] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07501e0248> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b69bcf8> | |
DummyInputLayer = <function factory at 0x7f074b6b7b90> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.81262159, 0.80527252, 0.04687421], | |
[ 0.56520224, 0.10....18079817], | |
[ 0.79939127, 0.51304603, 0.82134598]]]], dtype=float32) | |
output = array([[[[ 1.49556581, 0.87160055, 1.61954807, ..., 3.43778329, | |
...4927586, 2.20330196, ..., 2.044964 , | |
1.97783503, 2.13434232]]]]) | |
kwargs = {'b': None, 'untie_biases': True} | |
extra_kwargs = {'untie_biases': True} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
@pytest.mark.parametrize("extra_kwargs", [ | |
{}, | |
{'untie_biases': True}, | |
]) | |
def test_defaults(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs, extra_kwargs): | |
kwargs.update(extra_kwargs) | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((b, c, h, w)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:211: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp8Nk30I/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input0-kernel0-output0-kwargs0] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b1a42d8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f1b1230> | |
DummyInputLayer = <function factory at 0x7f074f1b1500> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.59569126, 0.55029488, 0.4863494 ], | |
[ 0.7975294 , 0.48....99357796], | |
[ 0.25253353, 0.29138321, 0.81023973]]]], dtype=float32) | |
output = array([[[[ 2.63045491, 2.1214192 , 1.38043544, ..., 1.4061835 , | |
...8615581, 2.9514114 , ..., 2.40613595, | |
2.62374212, 2.47137692]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpYLhB8z/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input1-kernel1-output1-kwargs1] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b50a950> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0757f1ae60> | |
DummyInputLayer = <function factory at 0x7f0757f1a668> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.43593016, 0.3821559 , 0.45301628], | |
[ 0.94030398, 0.91....13879862], | |
[ 0.47993591, 0.95308882, 0.72873181]]]], dtype=float32) | |
output = array([[[[ 5.9643928 , 5.39865403, 7.03539083, ..., 7.56741038, | |
...177, 6.25475073, ..., 6.93080655, | |
5.78053012, 6.26595903]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpmKYm1Y/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input2-kernel2-output2-kwargs2] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e3d85a8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b749758> | |
DummyInputLayer = <function factory at 0x7f074b7496e0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.52161646, 0.48815182, 0.8864271 ], | |
[ 0.53342885, 0.50....09418973], | |
[ 0.24556084, 0.97925282, 0.86615372]]]], dtype=float32) | |
output = array([[[[ 2.3933842 , 2.01458711, 2.75356083, ..., 2.93975076, | |
...5349493, 2.66737012, ..., 3.10897204, | |
3.10256893, 2.74857854]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpBT70LO/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input3-kernel3-output3-kwargs3] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e50ccf8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f07537e40c8> | |
DummyInputLayer = <function factory at 0x7f07537e4140> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.23995814, 0.17588803, 0.97367692], | |
[ 0.85161853, 0.45....4808999 ], | |
[ 0.30861512, 0.46499005, 0.43094292]]]], dtype=float32) | |
output = array([[[[ 8.37071488, 7.41823649, 7.17285633, ..., 8.83217916, | |
...593, 8.38975873, ..., 6.37840255, | |
6.80740208, 5.76591004]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmptB1D0A/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input4-kernel4-output4-kwargs4] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753409ea8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0750242488> | |
DummyInputLayer = <function factory at 0x7f0750242500> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.14897606, 0.1870138 , 0.18924546], | |
[ 0.49118334, 0.70....31703991], | |
[ 0.85738844, 0.1450029 , 0.60255051]]]], dtype=float32) | |
output = array([[[[ 1.35157165, 1.54599967, 0.75475729, ..., 1.55472612, | |
...4700253, 1.83142803, ..., 2.0022166 , | |
2.94711602, 2.4336168 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpE7XqoX/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input5-kernel5-output5-kwargs5] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0757f276c8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b71d7d0> | |
DummyInputLayer = <function factory at 0x7f074b71d0c8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.50501937, 0.48098138, 0.51347083], | |
[ 0.33969507, 0.59....42144823], | |
[ 0.53829569, 0.6824652 , 0.27246156]]]], dtype=float32) | |
output = array([[[[ 6.08529248, 7.05085439, 5.37742871, ..., 6.39824776, | |
...476, 6.80253951, ..., 6.74675745, | |
8.88131981, 9.38416114]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpDEMuVR/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input6-kernel6-output6-kwargs6] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074f19cd40> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b7490c8> | |
DummyInputLayer = <function factory at 0x7f074b749140> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.1188671 , 0.10430914, 0.77308387], | |
[ 0.79565173, 0.58....02378745], | |
[ 0.90573758, 0.0132231 , 0.44529143]]]], dtype=float32) | |
output = array([[[[ 0.05342402, 0.12300422, 0.48663031, ..., 0.30005442, | |
...3264172, 0.99082175, ..., 0.94313911, | |
0.10503942, 0.32886411]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp1Dg3b9/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input7-kernel7-output7-kwargs7] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0757cf1cf8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b749ed8> | |
DummyInputLayer = <function factory at 0x7f074b749848> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 8.47086906e-01, 1.43552855e-01, 9.38411430e-02], | |
[ 6... [ 6.23621106e-01, 7.72943795e-01, 5.61504900e-01]]]], dtype=float32) | |
output = array([[[[ 0.83992335, 0.90831259, 1.1490436 , ..., 1.71110055, | |
...6323637, 2.72314562, ..., 2.54147112, | |
1.69109747, 0.95324534]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp_7Ge2s/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input8-kernel8-output8-kwargs8] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753700ea8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0757f17b18> | |
DummyInputLayer = <function factory at 0x7f0757f17b90> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.28757161, 0.05386592, 0.03556067], | |
[ 0.82463849, 0.52....91314876], | |
[ 0.29063421, 0.56793392, 0.16946469]]]], dtype=float32) | |
output = array([[[[ 5.38317629e-02, 3.18833519e-01, 1.40522234e-01, ..., | |
...1e-01, ..., | |
8.28950449e-01, 1.72242020e+00, 9.27316638e-01]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpB0Mahk/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input9-kernel9-output9-kwargs9] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b36b290> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074fd06de8> | |
DummyInputLayer = <function factory at 0x7f074fd06050> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 7.17194557e-01, 8.55519831e-01, 1.97484136e-01], | |
[ 4... [ 2.69331485e-01, 1.84745818e-01, 2.08281144e-01]]]], dtype=float32) | |
output = array([[[[ 0.45734639, 2.49235691, 2.28502131, ..., 2.27313298, | |
...909, 4.22089685, ..., 4.39320649, | |
4.52596113, 0.94910013]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpW8QdQZ/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input10-kernel10-output10-kwargs10] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e52f9e0> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0750228f50> | |
DummyInputLayer = <function factory at 0x7f07502285f0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.07017883, 0.90581733, 0.25264335], | |
[ 0.81932062, 0.27....84701389], | |
[ 0.22901689, 0.08359931, 0.47741541]]]], dtype=float32) | |
output = array([[[[ 0.04635195, 0.74304531, 0.73734669, ..., 0.98772026, | |
...5816892, 2.79581603, ..., 2.61796174, | |
3.66796419, 0.91400121]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp4XIM_H/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input11-kernel11-output11-kwargs11] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0750126fc8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074f160938> | |
DummyInputLayer = <function factory at 0x7f074f160de8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.854249 , 0.02308639, 0.24447498], | |
[ 0.84713835, 0.63....34497917], | |
[ 0.26470268, 0.66075546, 0.49256435]]]], dtype=float32) | |
output = array([[[[ 0.84408039, 1.96383381, 1.99708489, ..., 1.80283813, | |
...1229326, 7.15572236, ..., 7.19341495, | |
7.14491216, 3.21177283]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpnEAXeE/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input12-kernel12-output12-kwargs12] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07537bebd8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b749500> | |
DummyInputLayer = <function factory at 0x7f074b749848> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.23788603, 0.85329354, 0.86488348], | |
[ 0.86382449, 0.64....03087085], | |
[ 0.59320563, 0.95973295, 0.05869967]]]], dtype=float32) | |
output = array([[[[ 1.22390705, 2.0904072 , 1.76121052, ..., 1.14256691, | |
...2019429, 2.02328825, ..., 1.09135738, | |
1.55863256, 0.96805862]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp0N6_FA/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input13-kernel13-output13-kwargs13] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0755be6ab8> | |
Conv2DImpl = <function Conv2DLayer at 0x7f074b69bc80> | |
DummyInputLayer = <function factory at 0x7f074b69b758> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.01292284, 0.76644725, 0.79242992], | |
[ 0.75451171, 0.38....24239081], | |
[ 0.00315646, 0.20192279, 0.47958609]]]], dtype=float32) | |
output = array([[[[ 2.19290999, 3.84864364, 4.07679297, ..., 4.28164943, | |
...528, 4.20276699, ..., 4.00881447, | |
4.19300912, 3.61008478]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpDyLkD7/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl0-input18-kernel18-output18-kwargs18] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0755be6128> | |
Conv2DImpl = <function Conv2DLayer at 0x7f0757fcc0c8> | |
DummyInputLayer = <function factory at 0x7f0757fccc08> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.46257028, 0.50570172, 0.92915815], | |
[ 0.88706791, 0.78....41733375], | |
[ 0.35297537, 0.94304502, 0.56844479]]]], dtype=float32) | |
output = array([[[[ 4.23272455, 4.23040014, 4.17915129, ..., 2.92885471, | |
...6555116, 2.40920369, ..., 2.10162401, | |
2.27005183, 1.42949432]]]]) | |
kwargs = {'b': None} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp4tDaar/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stderr call ----------------------------- | |
INFO (theano.gof.compilelock): Refreshing lock /home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/lock_dir/lock | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input0-kernel0-output0-kwargs0] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e550440> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b583c80> | |
DummyInputLayer = <function factory at 0x7f074b5832a8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.59569126, 0.55029488, 0.4863494 ], | |
[ 0.7975294 , 0.48....99357796], | |
[ 0.25253353, 0.29138321, 0.81023973]]]], dtype=float32) | |
output = array([[[[ 2.63045491, 2.1214192 , 1.38043544, ..., 1.4061835 , | |
...8615581, 2.9514114 , ..., 2.40613595, | |
2.62374212, 2.47137692]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpJBM4ug/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input1-kernel1-output1-kwargs1] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07502f3170> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074e311488> | |
DummyInputLayer = <function factory at 0x7f074e311500> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.43593016, 0.3821559 , 0.45301628], | |
[ 0.94030398, 0.91....13879862], | |
[ 0.47993591, 0.95308882, 0.72873181]]]], dtype=float32) | |
output = array([[[[ 5.9643928 , 5.39865403, 7.03539083, ..., 7.56741038, | |
...177, 6.25475073, ..., 6.93080655, | |
5.78053012, 6.26595903]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp260yjP/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input2-kernel2-output2-kwargs2] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074efdca70> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b2649b0> | |
DummyInputLayer = <function factory at 0x7f074b264b18> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.52161646, 0.48815182, 0.8864271 ], | |
[ 0.53342885, 0.50....09418973], | |
[ 0.24556084, 0.97925282, 0.86615372]]]], dtype=float32) | |
output = array([[[[ 2.3933842 , 2.01458711, 2.75356083, ..., 2.93975076, | |
...5349493, 2.66737012, ..., 3.10897204, | |
3.10256893, 2.74857854]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpic59rV/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input3-kernel3-output3-kwargs3] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b1ccea8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0750228e60> | |
DummyInputLayer = <function factory at 0x7f0750228cf8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.23995814, 0.17588803, 0.97367692], | |
[ 0.85161853, 0.45....4808999 ], | |
[ 0.30861512, 0.46499005, 0.43094292]]]], dtype=float32) | |
output = array([[[[ 8.37071488, 7.41823649, 7.17285633, ..., 8.83217916, | |
...593, 8.38975873, ..., 6.37840255, | |
6.80740208, 5.76591004]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpLuH8Lc/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input4-kernel4-output4-kwargs4] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b4ec998> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b71dc08> | |
DummyInputLayer = <function factory at 0x7f074fd06b90> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.14897606, 0.1870138 , 0.18924546], | |
[ 0.49118334, 0.70....31703991], | |
[ 0.85738844, 0.1450029 , 0.60255051]]]], dtype=float32) | |
output = array([[[[ 1.35157165, 1.54599967, 0.75475729, ..., 1.55472612, | |
...4700253, 1.83142803, ..., 2.0022166 , | |
2.94711602, 2.4336168 ]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpLHoZOJ/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input5-kernel5-output5-kwargs5] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074f11bf38> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b2640c8> | |
DummyInputLayer = <function factory at 0x7f074b264668> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.50501937, 0.48098138, 0.51347083], | |
[ 0.33969507, 0.59....42144823], | |
[ 0.53829569, 0.6824652 , 0.27246156]]]], dtype=float32) | |
output = array([[[[ 6.08529248, 7.05085439, 5.37742871, ..., 6.39824776, | |
...476, 6.80253951, ..., 6.74675745, | |
8.88131981, 9.38416114]]]]) | |
kwargs = {'border_mode': 'valid', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpHosgAB/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input6-kernel6-output6-kwargs6] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b56ca70> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0750228488> | |
DummyInputLayer = <function factory at 0x7f07502286e0> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.1188671 , 0.10430914, 0.77308387], | |
[ 0.79565173, 0.58....02378745], | |
[ 0.90573758, 0.0132231 , 0.44529143]]]], dtype=float32) | |
output = array([[[[ 0.05342402, 0.12300422, 0.48663031, ..., 0.30005442, | |
...3264172, 0.99082175, ..., 0.94313911, | |
0.10503942, 0.32886411]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp7B3XJP/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input7-kernel7-output7-kwargs7] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b5d9878> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0750242848> | |
DummyInputLayer = <function factory at 0x7f0750242410> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 8.47086906e-01, 1.43552855e-01, 9.38411430e-02], | |
[ 6... [ 6.23621106e-01, 7.72943795e-01, 5.61504900e-01]]]], dtype=float32) | |
output = array([[[[ 0.83992335, 0.90831259, 1.1490436 , ..., 1.71110055, | |
...6323637, 2.72314562, ..., 2.54147112, | |
1.69109747, 0.95324534]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpZkfZPe/9feb83af6867d846f4cb67ce81b7848b.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConvGradI{inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='cross'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnConvGradI{inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input8-kernel8-output8-kwargs8] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0757f38f38> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074fd068c0> | |
DummyInputLayer = <function factory at 0x7f074fd06758> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.28757161, 0.05386592, 0.03556067], | |
[ 0.82463849, 0.52....91314876], | |
[ 0.29063421, 0.56793392, 0.16946469]]]], dtype=float32) | |
output = array([[[[ 5.38317629e-02, 3.18833519e-01, 1.40522234e-01, ..., | |
...1e-01, ..., | |
8.28950449e-01, 1.72242020e+00, 9.27316638e-01]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpFtkgzy/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input9-kernel9-output9-kwargs9] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f07942ef4d0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b749de8> | |
DummyInputLayer = <function factory at 0x7f074b749848> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 7.17194557e-01, 8.55519831e-01, 1.97484136e-01], | |
[ 4... [ 2.69331485e-01, 1.84745818e-01, 2.08281144e-01]]]], dtype=float32) | |
output = array([[[[ 0.45734639, 2.49235691, 2.28502131, ..., 2.27313298, | |
...909, 4.22089685, ..., 4.39320649, | |
4.52596113, 0.94910013]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp4pOr5C/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input10-kernel10-output10-kwargs10] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074ef04290> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6a2c80> | |
DummyInputLayer = <function factory at 0x7f074b6a2cf8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.07017883, 0.90581733, 0.25264335], | |
[ 0.81932062, 0.27....84701389], | |
[ 0.22901689, 0.08359931, 0.47741541]]]], dtype=float32) | |
output = array([[[[ 0.04635195, 0.74304531, 0.73734669, ..., 0.98772026, | |
...5816892, 2.79581603, ..., 2.61796174, | |
3.66796419, 0.91400121]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpBA1Jev/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input11-kernel11-output11-kwargs11] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f0753a51fc8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757fcce60> | |
DummyInputLayer = <function factory at 0x7f0757fcc488> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.854249 , 0.02308639, 0.24447498], | |
[ 0.84713835, 0.63....34497917], | |
[ 0.26470268, 0.66075546, 0.49256435]]]], dtype=float32) | |
output = array([[[[ 0.84408039, 1.96383381, 1.99708489, ..., 1.80283813, | |
...1229326, 7.15572236, ..., 7.19341495, | |
7.14491216, 3.21177283]]]]) | |
kwargs = {'border_mode': 'full', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmp7uvg92/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='full', subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input12-kernel12-output12-kwargs12] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b625d40> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074fd06b90> | |
DummyInputLayer = <function factory at 0x7f074fd06758> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.23788603, 0.85329354, 0.86488348], | |
[ 0.86382449, 0.64....03087085], | |
[ 0.59320563, 0.95973295, 0.05869967]]]], dtype=float32) | |
output = array([[[[ 1.22390705, 2.0904072 , 1.76121052, ..., 1.14256691, | |
...2019429, 2.02328825, ..., 1.09135738, | |
1.55863256, 0.96805862]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpH4sR5V/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input13-kernel13-output13-kwargs13] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e47eb00> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f07502426e0> | |
DummyInputLayer = <function factory at 0x7f0750242398> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.01292284, 0.76644725, 0.79242992], | |
[ 0.75451171, 0.38....24239081], | |
[ 0.00315646, 0.20192279, 0.47958609]]]], dtype=float32) | |
output = array([[[[ 2.19290999, 3.84864364, 4.07679297, ..., 4.28164943, | |
...528, 4.20276699, ..., 4.00881447, | |
4.19300912, 3.61008478]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 1} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpAJKoCz/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input14-kernel14-output14-kwargs14] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b655dd0> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6b7d70> | |
DummyInputLayer = <function factory at 0x7f074b6b7230> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 1.63232639e-01, 7.76006222e-01, 4.15684909e-01], | |
[ 9... [ 2.37669758e-02, 6.09491408e-01, 5.99139392e-01]]]], dtype=float32) | |
output = array([[[[ 0.761127 , 1.62567948, 1.1345768 , ..., 0.97396282, | |
...908193 , 2.25046376, ..., 2.64057904, | |
2.11346796, 1.72583345]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpujFpoR/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input15-kernel15-output15-kwargs15] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b5e0560> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074e4a4410> | |
DummyInputLayer = <function factory at 0x7f074e4a4d70> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 7.24724710e-01, 9.62993145e-01, 8.43607128e-01], | |
[ 7... [ 7.92993307e-01, 4.63984042e-01, 6.83082700e-01]]]], dtype=float32) | |
output = array([[[[ 3.20914206, 5.2236152 , 4.57863851, ..., 5.4801046 , | |
...466, 5.20169429, ..., 6.61764408, | |
5.55160972, 3.48279013]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 2} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpZ1w0jo/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(2, 2), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input16-kernel16-output16-kwargs16] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b2cdf38> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f07537e4b18> | |
DummyInputLayer = <function factory at 0x7f07537e4f50> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.76808465, 0.62547338, 0.47369039], | |
[ 0.2311326 , 0.20....72042066], | |
[ 0.13582745, 0.6176495 , 0.37046972]]]], dtype=float32) | |
output = array([[[[ 1.45727249, 1.5029844 , 0.67887808, ..., 1.45283692, | |
...4045284, 0.78957868, ..., 1.07873665, | |
0.91143658, 1.06650855]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpfjftVS/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input17-kernel17-output17-kwargs17] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074b2aeab8> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f0757f179b0> | |
DummyInputLayer = <function factory at 0x7f0757f17b90> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.83156097, 0.0856793 , 0.66411543], | |
[ 0.07113351, 0.07....75689012], | |
[ 0.09203068, 0.04003238, 0.96369547]]]], dtype=float32) | |
output = array([[[[ 2.27999079, 4.15129469, 4.636227 , ..., 5.04829112, | |
...4 , 3.423213 , ..., 5.19318807, | |
4.65843726, 4.23913596]]]]) | |
kwargs = {'border_mode': 'same', 'stride': 3} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpnwSxDN/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode=(1, 1), subsample=(3, 3), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
TestConv2DLayerImplementations.test_with_nones[Conv2DImpl3-input18-kernel18-output18-kwargs18] | |
self = <test_conv.TestConv2DLayerImplementations instance at 0x7f074e55b710> | |
Conv2DImpl = <function Conv2DDNNLayer at 0x7f074b6a2668> | |
DummyInputLayer = <function factory at 0x7f074b6a21b8> | |
input = <CudaNdarrayType(float32, 4D)> | |
kernel = array([[[[ 0.46257028, 0.50570172, 0.92915815], | |
[ 0.88706791, 0.78....41733375], | |
[ 0.35297537, 0.94304502, 0.56844479]]]], dtype=float32) | |
output = array([[[[ 4.23272455, 4.23040014, 4.17915129, ..., 2.92885471, | |
...6555116, 2.40920369, ..., 2.10162401, | |
2.27005183, 1.42949432]]]]) | |
kwargs = {'b': None} | |
@pytest.mark.parametrize( | |
"input, kernel, output, kwargs", list(conv2d_test_sets())) | |
def test_with_nones(self, Conv2DImpl, DummyInputLayer, | |
input, kernel, output, kwargs): | |
b, c, h, w = input.shape.eval() | |
input_layer = DummyInputLayer((None, c, None, None)) | |
try: | |
layer = Conv2DImpl( | |
input_layer, | |
num_filters=kernel.shape[0], | |
filter_size=kernel.shape[2:], | |
W=kernel, | |
**kwargs | |
) | |
> actual = layer.get_output_for(input).eval() | |
lasagne/tests/layers/test_conv.py:233: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpSrQSPh/98e5206c3a3259fea8b3eba33aa40fc5.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnConv{workmem='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAlloc{memset_0=True}.0, GpuDnnConvDesc{border_mode='valid', subsample=(1, 1), conv_mode='conv'}.0, Constant{1.0}, Constant{0.0}), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', "[GpuDnnConv{workmem='small', inplace=True}(<CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CudaNdarrayType(float32, 4D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]") | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-1-0] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f07942ac3b0>, pool_size = 2 | |
stride = 1, pad = 0 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpa_jlF5/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(1, 1), mode='max', pad=(0, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-1-1] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074b404d40>, pool_size = 2 | |
stride = 1, pad = 1 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpicK41d/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(1, 1), mode='max', pad=(1, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-2-0] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074ee08290>, pool_size = 2 | |
stride = 2, pad = 0 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpQLnwwS/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(2, 1), mode='max', pad=(0, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
----------------------------- Captured stderr call ----------------------------- | |
INFO (theano.gof.compilelock): Refreshing lock /home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/lock_dir/lock | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-2-1] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074b29d1b8>, pool_size = 2 | |
stride = 2, pad = 1 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpinytfo/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(2, 1), mode='max', pad=(1, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-3-0] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f0757f88fc8>, pool_size = 2 | |
stride = 3, pad = 0 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpPUgRsS/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(3, 1), mode='max', pad=(0, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-3-1] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f07502e1d88>, pool_size = 2 | |
stride = 3, pad = 1 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpucai3_/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(3, 1), mode='max', pad=(1, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-4-0] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074efbb128>, pool_size = 2 | |
stride = 4, pad = 0 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpFYWGOk/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(4, 1), mode='max', pad=(0, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[2-4-1] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074e1f0830>, pool_size = 2 | |
stride = 4, pad = 1 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmptiNqeF/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(2, 1), stride=(4, 1), mode='max', pad=(1, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-1-0] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f0753711ab8>, pool_size = 3 | |
stride = 1, pad = 0 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpYsjNBg/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(1, 1), mode='max', pad=(0, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-1-1] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074b6e27e8>, pool_size = 3 | |
stride = 1, pad = 1 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpmwGhRK/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(1, 1), mode='max', pad=(1, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-1-2] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f07537be7a0>, pool_size = 3 | |
stride = 1, pad = 2 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmplzhoJg/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(1, 1), mode='max', pad=(2, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-2-0] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074ee60098>, pool_size = 3 | |
stride = 2, pad = 0 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpQlYVP8/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(2, 1), mode='max', pad=(0, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-2-1] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074e55bf80>, pool_size = 3 | |
stride = 2, pad = 1 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpZ6SL9n/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(2, 1), mode='max', pad=(1, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-2-2] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074b2cd7e8>, pool_size = 3 | |
stride = 2, pad = 2 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpkNE0xE/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(2, 1), mode='max', pad=(2, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-3-0] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f074e3cc758>, pool_size = 3 | |
stride = 3, pad = 0 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmpaf1zU0/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(3, 1), mode='max', pad=(0, 0)}.0), '\n', 'could not create cuDNN handle: CUDNN_STATUS_NOT_INITIALIZED', '[GpuDnnPool(<CudaNdarrayType(float32, (False, False, False, True))>, <CDataType{cudnnPoolingDescriptor_t}>)]') | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:293: RuntimeError | |
__________ TestMaxPool1DLayer.test_get_output_for_ignoreborder[3-3-1] __________ | |
self = <test_pool.TestMaxPool1DLayer instance at 0x7f0753262098>, pool_size = 3 | |
stride = 3, pad = 1 | |
@pytest.mark.parametrize( | |
"pool_size, stride, pad", list(pool_test_sets_ignoreborder())) | |
def test_get_output_for_ignoreborder(self, pool_size, stride, pad): | |
input = floatX(np.random.randn(8, 16, 23)) | |
input_layer = self.input_layer(input.shape) | |
input_theano = theano.shared(input) | |
layer_output = self.layer_ignoreborder( | |
input_layer, pool_size, stride, pad).get_output_for(input_theano) | |
> layer_result = layer_output.eval() | |
lasagne/tests/layers/test_pool.py:176: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/theano/gof/graph.py:412: in eval | |
self._fn_cache[inputs] = theano.function(inputs, self) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function.py:266: in function | |
profile=profile) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py:511: in pfunc | |
on_unused_input=on_unused_input) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1466: in orig_function | |
defaults) | |
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py:1324: in create | |
input_storage=input_storage_lists) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/link.py:519: in make_thunk | |
output_storage=output_storage)[:3] | |
/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py:897: in make_all | |
no_recycling)) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/__init__.py:259: in make_thunk | |
compute_map, no_recycling) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/op.py:739: in make_thunk | |
output_storage=node_output_storage) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1073: in make_thunk | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1015: in __compile__ | |
keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1442: in cthunk_factory | |
key=key, lnk=self, keep_lock=keep_lock) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py:1076: in module_from_key | |
module = lnk.compile_cmodule(location) | |
/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py:1354: in compile_cmodule | |
preargs=preargs) | |
/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py:434: in compile_str | |
return dlimport(lib_filename) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
fullpath = '/home/moose/.theano/compiledir_Linux-3.13--generic-x86_64-with-LinuxMint-17-qiana-x86_64-2.7.6-64/tmppAhBeR/7ea7902b72486df281d7603660a3ea9c.so' | |
suffix = '.so' | |
def dlimport(fullpath, suffix=None): | |
"""Dynamically load a .so, .pyd, .dll, or .py file | |
:type fullpath: string | |
:param fullpath: a fully-qualified path do a compiled python module | |
:param suffix: a suffix to strip from the end of fullpath to get the | |
import name | |
:type suffix: string | |
:returns: the dynamically loaded module (from __import__) | |
""" | |
if not os.path.isabs(fullpath): | |
raise ValueError('`fullpath` must be an absolute path', fullpath) | |
if suffix is None: | |
if fullpath.endswith('.so'): | |
suffix = '.so' | |
elif fullpath.endswith('.pyd'): | |
suffix = '.pyd' | |
elif fullpath.endswith('.dll'): | |
suffix = '.dll' | |
elif fullpath.endswith('.py'): | |
suffix = '.py' | |
else: | |
suffix = '' | |
rval = None | |
if fullpath.endswith(suffix): | |
module_name = '.'.join(fullpath.split(os.path.sep)[-2:])[:-len(suffix)] | |
else: | |
raise ValueError('path has wrong suffix', (fullpath, suffix)) | |
workdir = fullpath[:-len(module_name) - 1 - len(suffix)] | |
_logger.debug("WORKDIR %s", workdir) | |
_logger.debug("module_name %s", module_name) | |
sys.path[0:0] = [workdir] # insert workdir at beginning (temporarily) | |
global import_time | |
try: | |
if importlib is not None: | |
if hasattr(importlib, "invalidate_caches"): | |
importlib.invalidate_caches() | |
t0 = time.time() | |
> rval = __import__(module_name, {}, {}, [module_name]) | |
E RuntimeError: ('The following error happened while compiling the node', GpuDnnPool(GpuContiguous.0, GpuDnnPoolDesc{ws=(3, 1), stride=(3, 1), mode='max', pad=(1, 0)}.0), '\n', 'could no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment