powered by
This function converts a data frame or matrix into row-wise slices, similar to TensorFlow's `from_tensor_slices()`.
from_tensor_slices(data)
A list of slices, each corresponding to a row of the input data.
A data frame or matrix to be converted into slices.
df <- data.frame(A = 1:3, B = c("x", "y", "z")) from_tensor_slices(df)
Run the code above in your browser using DataLab