Replacing tensor values with other tensor values at specific indices

Hi everyone,

How does one replace tensor values in tensor A, with values from tensor B at indicated indices from tensor C? I am dealing with simple 1 dim tensors. Tensor A has shape [120], B [n] and C [n] where n is less than 120.

Thanks,
Vladimir

Found it - torch.scatter does exactly what I want!