Skip to content

Commit 4f54319

Browse files
committed
[skip ci]
1 parent bc9e1e7 commit 4f54319

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testthat/test_PipeOpTorch.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ test_that("Multiple NAs are allowed in the shape", {
135135
md = graph$train(task)[[1L]]
136136

137137
md$pointer_shape = c(4, NA)
138-
expect_error(po("nn_relu")$train(list(md)), regexp = NA)
138+
md = po("nn_relu")$train(list(md))[[1L]]
139+
expect_equal(md$pointer_shape, c(4, NA))
139140

140141
md$pointer_shape = c(NA, NA, 4)
141-
expect_error(nn("relu_1")$train(list(md)), regexp = NA)
142+
expect_equal(md$pointer_shape, c(NA, NA, 4))
142143
})
143144

144145
test_that("only_batch_unknown", {

0 commit comments

Comments
 (0)