Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knet.Layers20 #607

Open
denizyuret opened this issue Aug 28, 2020 · 3 comments
Open

Knet.Layers20 #607

denizyuret opened this issue Aug 28, 2020 · 3 comments
Assignees

Comments

@denizyuret
Copy link
Owner

Copy of KnetLayers?

@denizyuret denizyuret self-assigned this Aug 28, 2020
@andevellicus
Copy link

Could 3D functions (5D tensors) please be supported?

@denizyuret
Copy link
Owner Author

denizyuret commented Sep 2, 2020 via email

@andevellicus
Copy link

At the moment KnetLayers' implementation of CNNs is restricted to 2D inputs:

function Filtering{T}(;height::Integer, width::Integer, inout::Pair=1=>1,
                       activation::ActOrNothing=NonAct(),
                       winit=xavier, binit=zeros,
                       atype=arrtype,
                       opts...) where T <: Function

    wsize = T===typeof(conv4) ? inout : reverse(inout)
    w = param(height,width,wsize...; init=winit, atype=atype)
    b = binit !== nothing ? Bias(1,1,inout[2],1; init=binit, atype=atype) : Bias(nothing)
    Filtering{T}(w, b, activation; opts...)

end

In my code I just changed height and width to a tuple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants