def test_conv1d_layer3(self): dict1 = Conv1d(name='convo1d_3', n_filters=10, act='relu', src_layers=[InputLayer(name='input1') ]).to_model_params() self.assertTrue(self.sample_syntax['convo1d_3'] == dict1)
def test_conv1d_layer1(self): dict1 = Conv1d(name='convo1d_1', n_filters=10, act='relu', width=3, stride=2, padding=1, src_layers=[InputLayer(name='input1') ]).to_model_params() self.assertTrue(self.sample_syntax['convo1d_1'] == dict1)