nn_check_reshape_shape: Validate a reshape layer's target 'shape'

View source: R/nn_layers.R

nn_check_reshape_shapeR Documentation

Validate a reshape layer's target 'shape'

Description

Checked at layer-construction time so a typo surfaces where it was written. The element count cannot be checked yet – the input shape is unknown until the shape pass – so that half lives in [nn_reshape_output_shape()].

Usage

nn_check_reshape_shape(shape)

Arguments

shape

Candidate per-sample shape.

Value

'shape' as an integer vector.


ggmlR documentation built on Oct. 23, 2026, 1:07 a.m.