No. The problem is that std::vector cannot be initialized with given data.
If you only need array-like access, you can use ArrayRef instead, but you have to take care of keeping the underlying tensor around.
Alternatively, you could allocate the vector, use torch.from_blob on that and then use an _out variant to write to that. Depending on the final op, it would just move the copying deep into PyTorch though.
Best regards
Thomas