For example, I have a tensor t = torch.rand(10,1)
. And I want to select the tensor subset of at the rows of {1,3,7,9}
and concatenate them as new tensor. Is there any elegant way? Thank you.
相关问题
- How to get the return code of a shell script in lu
- Accessing Light userdata in Lua
- How to convert a list of tensors into a torch::Ten
- Wireshark dissector that works with tls/ssl
- Email address validation using corona sdk
相关文章
- RuntimeError: Expected object of backend CUDA but
- Lua Integer type
- First character uppercase Lua
- torch / lua: retrieving n-best subset from Tensor
- How to handle errors when resuming a Lua thread (c
- Is Lua an object-oriented language?
- Getting previous day's date in Lua
- How do I create a save game feature in love2d?
There's
:index
method: