-
-
Notifications
You must be signed in to change notification settings - Fork 616
Make bias optional #873
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
Merged
Merged
Make bias optional #873
Changes from 3 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5ea6a33
make bias optional
9f2ac8f
ditto remaining conv layers
a801fcb
docstrings
dced8c0
use ZeroType
1fe3217
add to docs
55ef7c1
add weight and bias kwargs
48a305b
ditto remaining layers
e97d61f
fixes
d00f833
rm ZeroType
2ae3ad3
doc fixes
214f71f
add N
a1e826b
fixes
f3904b4
add ZeroType back
040697f
add bias and weight kwarg
b596faa
tests bias switch
95c5845
document bias switch
49ea43e
ZeroType => Zeros
c85bad4
replace weight with filter
4a183ae
make Zeros a dimensionlesss number
7c90fb4
use array to define Zeros
a4a987f
hook into bcasting
e89b8eb
fixes
eb41715
define manual rules
2455630
cleaner API
ec872bb
test that bias has no grads with Zeros
f39e184
rm Zeros warning
894c075
rm Zeros setindex
a72ca2b
fix args
b9fbee1
::typeof(op) -> op
bc20103
no-op copy
f889d0c
add kwarg constructors
58211e3
docs improve
cd93179
more docs and constructors
cf82393
type signatures
20e78e2
docs fix
7e308e7
rm unneccesary fns
d8e44fc
correct broadcasting for addition
5086c0f
merge conflicts
534809a
move zeros to its own file
29215fa
comment on possible future deprecations
8f877f2
quick fix
MikeInnes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is weird though that when calling this constructor with
use_bias=falseone has to pass a vectorbas well.I would suggest the following non-breaking change instead of the
use_biasflag:and have a call to
Conv(w, nothing)construct a Conv layer with no bias
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be able to support
Conv(w, nothing)and make it a bit more extensible now, I think