keras_layer_to_model: Convert a Keras layer quickly to a custom Keras model so it...

Description Usage Arguments Details Value

View source: R/keras_layer_to_model.R

Description

Mainly used for testing new custom Keras layers quickly and easily by converting them to custom Keras models, which can be used in tensorflow eager mode

Usage

1
keras_layer_to_model(layer, build_model = FALSE)

Arguments

layer

Layer to convert to a custom model. Should be an expression, where the layer is invoked with desired parameter values.

build_model

Should the built custom model be returned? Or a function that can be used to build the model? Default FALSE.

Details

Don't forget to set use_implementation("tensorflow")!

Value

Either a layer or a function to build the layer.


rdinnager/DDLL documentation built on Nov. 5, 2019, 3:04 a.m.