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 03d99a9 + 93c8e7f commit 07d3153Copy full SHA for 07d3153
.github/workflows/main.yaml
@@ -28,7 +28,7 @@ jobs:
28
CRAN: ${{ matrix.cran }}
29
30
steps:
31
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
32
- uses: r-lib/actions/setup-r@master
33
- uses: r-lib/actions/setup-pandoc@master
34
- name: Install system dependencies
R/layer-methods.R
@@ -168,6 +168,10 @@ as_node_index <- function(node_index) {
168
#'
169
#' @export
170
adapt <- function(object, data, reset_state = NULL) {
171
+
172
+ if (!inherits(data, "python.builtin.object"))
173
+ data <- keras_array(data)
174
175
# layers can implement adapt with different default reset_state
176
if (is.null(reset_state))
177
object$adapt(data)
0 commit comments