layer2index: Find Index for Layer Name

Description Usage Arguments Value

View source: R/5-get.R

Description

This function returns the numeric index that corresponds to a requested layer. If the request is a string, this function looks up the index. If the request is an integer, this function returns that integer.

Usage

1
layer2index(model, layer)

Arguments

model

A keras model.

layer

A string or integer. The requested layer.

Value

An integer. The requested layer's index.


tpq/caress documentation built on March 11, 2021, 8:03 p.m.