@@ -2360,15 +2360,6 @@ set_vocabulary <- function(object, vocabulary, idf_weights=NULL, ...) {
23602360}
23612361
23622362
2363- # # TODO: TextVectorization has a compile() method. investigate if this is
2364- # # actually useful to export
2365- # compile.keras.engine.base_preprocessing_layer.PreprocessingLayer <-
2366- function (object , run_eagerly = NULL , steps_per_execution = NULL , ... ) {
2367- args <- capture_args(ignore = " object" )
2368- do.call(object $ compile , args )
2369- }
2370-
2371-
23722363# ' A preprocessing layer to convert raw audio signals to Mel spectrograms.
23732364# '
23742365# ' @description
@@ -2585,11 +2576,12 @@ function (object, fft_length = 2048L, sequence_stride = 512L,
25852576adapt <- function (object , data , ... , batch_size = NULL , steps = NULL ) {
25862577 if (! is_py_object(data ))
25872578 data <- keras_array(data )
2588- # TODO: use as_tensor() here
25892579
2590- args <- capture_args(list (batch_size = as_nullable_integer ,
2591- step = as_nullable_integer ),
2592- ignore = c(" object" , " data" ))
2580+ args <- capture_args(
2581+ list (batch_size = as_nullable_integer ,
2582+ step = as_nullable_integer ),
2583+ ignore = c(" object" , " data" )
2584+ )
25932585 # `data` named to `dataset` in keras3 keras.utils.FeatureSpace
25942586 # pass it as a positional arg
25952587 args <- c(list (data ), args )
0 commit comments