Just like you would in Python, use torch::cat
to concatenate along a single axis and torch::stack
to create a new axis. Note that dimensions (except possible the cat
dimension) must match for this to succeed.
Best regards
Thomas
Just like you would in Python, use torch::cat
to concatenate along a single axis and torch::stack
to create a new axis. Note that dimensions (except possible the cat
dimension) must match for this to succeed.
Best regards
Thomas