You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to open the issue to see whether we are interested in specializing cat on the last dim.
Currently, we have specialized cat on 1st and 2nd dim as vcat and hcat respectively, and reduce on vcat and hcat have their own implementations for better performance.
Note also that "stack-like" seems misleading, in that this uses dims=ndims(x) where stack would use dims=ndims(x)+1. It's along the last dimension, rather than always a new dimension.
dcat: the third dimension is commonly referred as depth
ncat: (not recommended since the existing hvncat)
vcat
hcat
ctarn
changed the title
Feature Proposal: specialize cat on the last dim as scat (stack-like cat)
Feature Proposal: specialize cat on the last dim
Jul 6, 2023
Uh oh!
There was an error while loading. Please reload this page.
Hi, I would like to open the issue to see whether we are interested in specializing
cat
on the last dim.Currently, we have specialized
cat
on 1st and 2nd dim asvcat
andhcat
respectively, andreduce
onvcat
andhcat
have their own implementations for better performance.Additionally, we also have
stack
for similar purposes, butstack
requires that all items have the same size. (#21672, #43334)In my own code base, I call it
scat
(stack-like cat), and simply define it as below:An extra method for
reduce
for better performance is preferred:The text was updated successfully, but these errors were encountered: