Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Tweeking syntax to be closer to other tests (#19186) (#19206)
Browse files Browse the repository at this point in the history
  • Loading branch information
DickJC123 committed Sep 22, 2020
1 parent 96f6454 commit c2df97f
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 c2df97f

Please sign in to comment.