Skip to content

Commit 799819e

Browse files
authored
Merge pull request #887 from dfalbel/py_func
py_func call is no longer necessary
2 parents a7971f7 + 35ac754 commit 799819e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/model-custom.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ keras_model_custom <- function(model_fn, name = NULL) {
2727
r_model_call <- model_fn(model)
2828

2929
# set the _r_call for delegation
30-
model$`_r_call` <- reticulate::py_func(r_model_call)
30+
model$`_r_call` <- r_model_call
3131

3232
# return model
3333
model

0 commit comments

Comments
 (0)