Learn R Programming

tensorr (version 0.1.1)

squeeze: Remove tensor dimensions of size 1

Description

Remove tensor dimensions of size 1

Usage

squeeze(x, todrop = NULL)

Arguments

x

sptensor

todrop

specific dimensions to drop. If NULL, will drop all dimensions of size 1