Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushinav committed Dec 28, 2024
1 parent 6b24bab commit 3eacc11
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/models/nomad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ julia> size(first(nomad((u, y), ps, st)))
```
"""
@concrete struct NOMAD <: AbstractLuxContainerLayer{(:approximator, :decoder)}
approximator
decoder
concatenate <: Function
approximator
decoder
concatenate <: Function
end

"""
Expand Down Expand Up @@ -104,7 +104,9 @@ function (nomad::NOMAD)(x, ps, st::NamedTuple)
return out, (approximator=st_a, decoder=st_d)
end

NOMAD(approximator_net, decoder_net; concatenate=nomad_concatenate) = NOMAD(approximator_net, decoder_net, concatenate)
function NOMAD(approximator_net, decoder_net; concatenate=nomad_concatenate)
NOMAD(approximator_net, decoder_net, concatenate)
end

batch_vectorize(x::AbstractArray) = reshape(x, :, size(x, ndims(x)))

Expand Down

0 comments on commit 3eacc11

Please sign in to comment.