maybe_unsqueeze {fastai}R Documentation

Maybe_unsqueeze

Description

Add empty dimension if it is a rank 1 tensor/array

Usage

maybe_unsqueeze(x)

Arguments

x

R array/matrix/tensor

Value

array


[Package fastai version 2.2.2 Index]