How do I update torch::jit::IValue's value

  1. First As you know, aten use at::IValue as input & output. So I wanna use layer 1 output to update layer 2 input. I don’t wanna use new created IValue, but update old one’s value by new one.(because they are the same at::IValue).
  2. Can at::IValue(for example A) store list of other at::IValues(like B C D)? If I modify other’s(B C D) at::IValue, then A would be changed coorespondly.

The First question could be deal with at::IValue swap method. But I have no idea about second.