Skip to content

Commit

Permalink
Tweeking syntax to be closer to other tests (apache#19186)
Browse files Browse the repository at this point in the history
  • Loading branch information
DickJC123 committed Sep 21, 2020
1 parent a35d568 commit a98fd09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R-package/tests/testthat/test_img_seg.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,11 @@ test_that("UNET", {
train.y.array <- train.y
dim(train.y.array) <- c(IMG_SIZE, IMG_SIZE, 1, 30)

devices <- mx.ctx.default()
mx.set.seed(0)

net <- get_unet()

model <- mx.model.FeedForward.create(net, X = train.array, y = train.y.array,
ctx = devices, num.round = 2, initializer = mx.init.normal(sqrt(2/576)),
ctx = mx.ctx.default(), num.round = 2, initializer = mx.init.normal(sqrt(2/576)),
learning.rate = 0.05, momentum = 0.99, array.batch.size = 2)
})

0 comments on commit a98fd09

Please sign in to comment.