Adding necessary imports.
This commit is contained in:
parent
534c4744ca
commit
2a4364d226
@ -15,10 +15,13 @@
|
|||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": true
|
"collapsed": false
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
"import mlp.layers as layers\n",
|
||||||
|
"import mlp.initialisers as init\n",
|
||||||
|
"\n",
|
||||||
"class ConvolutionalLayer(layers.LayerWithParameters):\n",
|
"class ConvolutionalLayer(layers.LayerWithParameters):\n",
|
||||||
" \"\"\"Layer implementing a 2D convolution-based transformation of its inputs.\n",
|
" \"\"\"Layer implementing a 2D convolution-based transformation of its inputs.\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -187,6 +190,8 @@
|
|||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
"import numpy as np\n",
|
||||||
|
"\n",
|
||||||
"def test_conv_layer_fprop(layer_class, do_cross_correlation=False):\n",
|
"def test_conv_layer_fprop(layer_class, do_cross_correlation=False):\n",
|
||||||
" \"\"\"Tests `fprop` method of a convolutional layer.\n",
|
" \"\"\"Tests `fprop` method of a convolutional layer.\n",
|
||||||
" \n",
|
" \n",
|
||||||
|
Loading…
Reference in New Issue
Block a user