torch.Tensor.Tensor.slice_scatter
Tensor.slice_scatter(src: Tensor, options?: SliceScatterOptions): Tensor<DynamicShape, D, Dev>Tensor.slice_scatter(src: Tensor, dim: number, start: number, end: number, step: number, options?: SliceScatterOptions): Tensor<DynamicShape, D, Dev>Embeds values from src into self at the given slice.
Parameters
srcTensor- Source tensor to embed
optionsSliceScatterOptionsoptional- Optional settings for slice_scatter
Returns
Tensor<DynamicShape, D, Dev>– New tensor with embedded values