What is the expected way to create an IValue with a list of IValues? The C++ constructor expects a c10::List<IVector>, i.e., a (GenericList), but this structure appears to be impossible to construct. Any form of syntax I’ve tried to create one of these list structures fails at compilation with a
static_assert(!std::is_same<T, IValue>::value, "This constructor is not valid for List<IValue>. Please use c10::impl::GenericList(elementType) instead.");
Using the recommended c10::impl implementation does not change anything.
I would expect a constructor for IValue to exist with a std::vector<IValue> signature, which is true for constructing an IValue from a tensor vector of type std::vector<Tensor>.