Skip to content

Commit 2f6c819

Browse files
committed
revert length() method for tensorflow Modules
1 parent 39d7016 commit 2f6c819

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ S3method(export_savedmodel,keras.engine.training.Model)
4040
S3method(fit,keras.engine.training.Model)
4141
S3method(floor,keras.engine.keras_tensor.KerasTensor)
4242
S3method(length,keras.engine.keras_tensor.KerasTensor)
43-
S3method(length,tensorflow.python.module.module.Module)
4443
S3method(lgamma,keras.engine.keras_tensor.KerasTensor)
4544
S3method(log,keras.engine.keras_tensor.KerasTensor)
4645
S3method(log10,keras.engine.keras_tensor.KerasTensor)

R/utils.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,3 @@ is_mac_arm64 <- function() {
458458
sys_info[["sysname"]] == "Darwin" &&
459459
sys_info[["machine"]] == "arm64"
460460
}
461-
462-
# Temporary workaround to prevent IDE overwriting last py exception by calling
463-
# `length()` on a model.
464-
#
465-
# Remove once https://github.com/rstudio/reticulate/issues/1113 is resolved.
466-
#' @export
467-
length.tensorflow.python.module.module.Module <- function(x) 1L

0 commit comments

Comments
 (0)