cat coloring pages to print - New Coloring
xnew_from_cat = torch.cat((x, x, x), 1) print(f'{xnew_from_cat.size()}') print() # stack serves the same role as append in lists. i.e. it doesn't change the original # vector space but instead adds a new index to the new tensor, so you retain the ability # get the original tensor you added to the list by indexing in the new dimension cat is valid only for atomic types (logical, integer, real, complex, character) and names.
Understanding the Context
It means you cannot call cat on a non-empty list or any type of object. In practice it simply converts arguments to characters and concatenates so you can think of something like as.character() %>% paste(). print is a generic function so you can define a specific implementation for a certain S3 class.