-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[MXNET-690] Add tests for initializers in R #12360
Conversation
974473d to
3503d37
Compare
|
|
||
| testthat("mx.init.internal.default", { | ||
| sample_bias <- mxnet:::mx.init.internal.default("X_bias", c(5, 10, 100), | ||
| ctx = mx.ctx.default()) |
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.
Incorrect indent.
| expect_equal(typeof(xavier_init), 'closure') | ||
|
|
||
| # default parameters | ||
| shape <- c(2, 3, 324, 324) |
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.
Is there a reason to pick 324?
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.
no particular reason, I just did not want to pick a number too low that the test becomes flaky or too high that the test takes very long to execute. It was quite random
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.
OK. As long as it works.
|
@hetong007 ran |
|
LGTM |
* Add tests for intializer * lint and indent
Description
Add tests for uniform, normal and Xavier initializers.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Comments