list2tensor: Data conversion of list to tensor.

Description Usage Arguments Value Author(s)

View source: R/list2tensor.R

Description

Convert list data to 4D/5D array # Note below # 2D convolution layer (e.g. spatial convolution over images). # Input shape 4D tensor with shape: (samples, channels, rows, cols) if data_format='channels_first' 4D tensor with shape: (samples, rows, cols, channels) if data_format='channels_last' # Output shape 4D tensor with shape: (samples, filters, new_rows, new_cols) if data_format='channels_first' 4D tensor with shape: (samples, new_rows, new_cols, filters) if data_format='channels_last' rows and cols values might have changed due to padding. 3D convolution layer (e.g. spatial convolution over volumes). # Input shape 5D tensor with shape: (samples, channels, conv_dim1, conv_dim2, conv_dim3) if data_format='channels_first' 5D tensor with shape: (samples, conv_dim1, conv_dim2, conv_dim3, channels) if data_format='channels_last' # Output shape 5D tensor with shape: (samples, filters, new_conv_dim1, new_conv_dim2, new_conv_dim3) if data_format='channels_first' 5D tensor with shape: (samples, new_conv_dim1, new_conv_dim2, new_conv_dim3, filters) if data_format='channels_last' new_conv_dim1, new_conv_dim2 and new_conv_dim3 values might have changed due to padding.

Usage

1
list2tensor(xList)

Arguments

xList

list data of 3D array

Value

4D Array.

Author(s)

Satoshi Kume


kumeS/rMiW documentation built on Dec. 21, 2021, 8:43 a.m.