We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d57e67f + 7518def commit af3d1e2Copy full SHA for af3d1e2
R/model.R
@@ -937,7 +937,7 @@ as_generator.function <- function(x) {
937
python_path <- system.file("python", package = "keras")
938
tools <- reticulate::import_from_path("kerastools", path = python_path)
939
iter <- reticulate::py_iterator(function() {
940
- elem <- x()
+ elem <- keras_array(x())
941
reticulate::tuple(elem[1], elem[2])
942
})
943
tools$generator$iter_generator(iter)
0 commit comments