mirror of
https://github.com/wassname/keras-contrib.git
synced 2026-06-27 16:10:11 +08:00
fix tf dim ordering test
This commit is contained in:
@@ -121,7 +121,7 @@ def test_cosineconvolution_2d():
|
||||
elif dim_ordering == 'tf':
|
||||
X = np.random.randn(1, 5, 5, 3)
|
||||
input_dim = (5, 5, 3)
|
||||
W0 = X[:, ::-1, ::-1, :]
|
||||
W0 = X[0, ::-1, ::-1, :, None]
|
||||
|
||||
model = Sequential()
|
||||
model.add(convolutional.CosineConvolution2D(1, 5, 5, bias=True, input_shape=input_dim))
|
||||
|
||||
Reference in New Issue
Block a user