python - TypeError: __init__() takes exactly 2 arguments (3 given) when I try to permute -


how shall permute rows , columns in following example?

input_shape = (input_dim, input_features) inputs = input(input_shape) net = reshape(input_shape + (1, ), input_shape=input_shape)(inputs) 

net passed conv2d.

when use inpute_shape = permute(2,1) got error __init__() takes 2 arguments (3 given)

thanks!

this recent traceback after tried options:

traceback (most recent call last):   file "app.py", line 372, in <module>     train(model_filename=args.model, epochs=args.epochs, dim=args.dim)   file "app.py", line 61, in train     output_classes=reader.classes)   file "/home/ubuntu/calypso_v2/model.py", line 53, in build_model     net = permute(3,2)(net) typeerror: __init__() takes 2 arguments (3 given) 

permute() takes tuple positional argument. instead of tuple (2,1), you've specified 2 ints 2, , 1.

try this:

inpute_shape = permute((2,1)) 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -