Skip to content

Commit

Permalink
conf
Browse files Browse the repository at this point in the history
  • Loading branch information
pchavanne committed Dec 10, 2016
1 parent 0abdb8c commit 5b54e12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions tests/test_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def input_data(self):
def input_layer(self, input_data):
from yadll.layers import InputLayer
shape = (16, 3, None, None, 10)
return InputLayer(shape, input_var=input_data)
return InputLayer(shape, input=input_data)

def test_reshape(self, reshape_layer, input_layer):
layer = reshape_layer(input_layer, (16, 3, 5, 7, 2, 5))
Expand All @@ -104,7 +104,7 @@ def input_data(self):
def input_layer(self, input_data):
from yadll.layers import InputLayer
shape = (2, 3, 4, 5,)
return InputLayer(shape, input_var=input_data)
return InputLayer(shape, input=input_data)

def test_output_shape(self, flatten_layer, input_layer):
layer = flatten_layer(input_layer)
Expand Down Expand Up @@ -132,7 +132,7 @@ def input_data(self):
def input_layer(self, input_data):
from yadll.layers import InputLayer
shape = (10, 20)
return InputLayer(shape, input_var=input_data)
return InputLayer(shape, input=input_data)

@pytest.fixture
def layer(self, dense_layer, input_layer):
Expand Down Expand Up @@ -178,7 +178,7 @@ def input_data(self):
def input_layer(self, input_data):
from yadll.layers import InputLayer
shape = (10, 20)
return InputLayer(shape, input_var=input_data)
return InputLayer(shape, input=input_data)

@pytest.fixture
def hp(self):
Expand Down Expand Up @@ -237,7 +237,7 @@ def input_data(self):
def input_layer(self, input_data):
from yadll.layers import InputLayer
shape = (None, 20)
return InputLayer(shape, input_var=input_data)
return InputLayer(shape, input=input_data)

@pytest.fixture
def layer(self, dropout, input_layer):
Expand Down Expand Up @@ -271,7 +271,7 @@ def input_data(self):
def input_layer(self, input_data):
from yadll.layers import InputLayer
shape = (10, 20)
return InputLayer(shape, input_var=input_data)
return InputLayer(shape, input=input_data)

@pytest.fixture
def layer(self, dropconnect, input_layer):
Expand Down Expand Up @@ -304,7 +304,7 @@ def input_data(self):
def input_layer(self, input_data):
from yadll.layers import InputLayer
shape = (10, 20)
return InputLayer(shape, input_var=input_data)
return InputLayer(shape, input=input_data)

@pytest.fixture
def layer(self, pool_layer, input_layer):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def model_y_2D(self, data_y_2D, hp):
@pytest.fixture(scope='module')
def input(self):
from yadll.layers import InputLayer
return InputLayer(shape=(None, 25))
return InputLayer(input_shape=(None, 25))

@pytest.fixture(scope='module')
def layer(self, input):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def x(self):
@pytest.fixture
def input(self, x):
from yadll.layers import InputLayer
return InputLayer(shape=(None, 25), input_var=x)
return InputLayer(input_shape=(None, 25), input=x)

@pytest.fixture
def layer(self, input):
Expand Down

0 comments on commit 5b54e12

Please sign in to comment.