Skip to content

Commit

Permalink
Update docs for Scale
Browse files Browse the repository at this point in the history
Bump patch
  • Loading branch information
theabhirath committed May 31, 2022
1 parent 2d7ca99 commit 0fa2aaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Lux"
uuid = "b2108857-7c20-44ae-9111-449ecde12c47"
authors = ["Avik Pal <avikpal@mit.edu> and contributors"]
version = "0.4.2"
version = "0.4.3"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
13 changes: 8 additions & 5 deletions src/layers/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ Create a Sparsely Connected Layer with a very specific structure (only Diagonal
## Arguments
* `dims`: number of input and output dimensions
* `dims`: size of the learnable scale and bias parameters.
* `activation`: activation function
## Keyword Arguments
Expand All @@ -702,17 +702,20 @@ Create a Sparsely Connected Layer with a very specific structure (only Diagonal
## Input
* `x` must be a Matrix of size `dims × B` or a Vector of length `dims`
* `x` must be an Array of size `(dims..., B)` or `(dims...[0], ..., dims[k])` for `k ≤ size(dims)`
## Returns
* Matrix of size `dims × B` or a Vector of length `dims`
* Array of size `(dims..., B)` or `(dims...[0], ..., dims[k])` for `k ≤ size(dims)`
* Empty `NamedTuple()`
## Parameters
* `weight`: Weight Vector of size `(dims,)`
* `bias`: Bias of size `(dims,)`
* `weight`: Weight Array of size `(dims...)`
* `bias`: Bias of size `(dims...)`
!!! compat "Lux 0.4.3"
`Scale` with multiple dimensions requires at least Lux 0.4.3.
"""
struct Scale{bias, F1, D, F2, F3} <: AbstractExplicitLayer
activation::F1
Expand Down

0 comments on commit 0fa2aaf

Please sign in to comment.