k_unstack: Unstack rank 'R' tensor into a list of rank 'R-1' tensors.

View source: R/backend.R

k_unstackR Documentation

Unstack rank R tensor into a list of rank R-1 tensors.

Description

Unstack rank R tensor into a list of rank R-1 tensors.

Usage

k_unstack(x, axis = 1L, num = NULL, name = NULL)

Arguments

x

a tensor.

axis

Axis along which to perform stacking (axis indexes are 1-based). Negative values wrap around, so the valid range is ⁠[R, -R]⁠.

num

An int. The length of the dimension axis. Automatically inferred if NULL (the default).

name

A name for the operation (optional).

Value

A tensor.

Keras Backend

This function is part of a set of Keras backend functions that enable lower level access to the core operations of the backend tensor engine (e.g. TensorFlow, CNTK, Theano, etc.).

You can see a list of all available backend functions here: https://tensorflow.rstudio.com/reference/keras/index.html#backend.


keras documentation built on May 29, 2024, 3:20 a.m.