@@ -172,13 +172,11 @@ def test_naming():
172
172
model .train_on_batch (np .random .random ((2 , 2 )), np .random .random ((2 , 2 )))
173
173
174
174
175
- @pytest .mark .skipif (K ._BACKEND == 'tensorflow' ,
176
- reason = 'currently not working with TensorFlow' )
177
175
def test_sequences ():
178
176
'''Test masking sequences with zeroes as padding'''
179
177
# integer inputs, one per timestep, like embeddings
180
178
layer = core .Masking ()
181
- func = K .function ([layer .input ], [layer .get_output_mask ()])
179
+ func = K .function ([layer .get_input ( True ) ], [layer .get_output_mask ()])
182
180
input_data = np .array ([[[1 ], [2 ], [3 ], [0 ]],
183
181
[[0 ], [4 ], [5 ], [0 ]]], dtype = np .int32 )
184
182
@@ -190,8 +188,6 @@ def test_sequences():
190
188
assert np .all (output == expected ), 'Output not as expected'
191
189
192
190
193
- @pytest .mark .skipif (K ._BACKEND == 'tensorflow' ,
194
- reason = 'currently not working with TensorFlow' )
195
191
def test_non_zero ():
196
192
'''Test masking with non-zero mask value'''
197
193
layer = core .Masking (5 )
@@ -204,8 +200,6 @@ def test_non_zero():
204
200
assert np .all (output == expected ), 'Output not as expected'
205
201
206
202
207
- @pytest .mark .skipif (K ._BACKEND == 'tensorflow' ,
208
- reason = 'currently not working with TensorFlow' )
209
203
def test_non_zero_output ():
210
204
'''Test output of masking layer with non-zero mask value'''
211
205
layer = core .Masking (5 )
0 commit comments