How to convert 'c10::List' to std::vector

when define a new op, some parameters are torch::List. It is not easy to use such data type.
1.How to convert ‘c10::List’ to std::vector???
2.BTW, could anyone can show me the usage of c10::List or its API?


1 Like
  1. c10_list.vec()
  2. c10_list[0]; c10_list[1]