lazy_shape: Shape of Lazy Tensor

View source: R/lazy_tensor.R

lazy_shapeR Documentation

Shape of Lazy Tensor

Description

Shape of a lazy tensor. Might be NULL if the shapes is not known or varying between rows. Batch dimension is always NA.

Usage

lazy_shape(x)

Arguments

x

(lazy_tensor)
Lazy tensor.

Value

(integer() or NULL)

Examples


lt = as_lazy_tensor(1:10)
lazy_shape(lt)
lt = as_lazy_tensor(matrix(1:10, nrow = 2))
lazy_shape(lt)


mlr3torch documentation built on Aug. 26, 2025, 5:09 p.m.