25 lines
649 B
Markdown
25 lines
649 B
Markdown
# Pt Scatter
|
|
Generates a new tensor by replacing values at specified positions using an index tensor.
|
|
|
|
* Target tensor (tens): Some of whose values are replaced.
|
|
* Source tensor (src): Values from this tensor replace a part or whole of the target tensor.
|
|
* Index tensor (index): Specifies the positions in the target tensor for replacement.
|
|
|
|
## Input
|
|
| Name | Data type |
|
|
|---|---|
|
|
| tens | Tensor |
|
|
| dim | Int |
|
|
| index | String |
|
|
| src | String |
|
|
|
|
## Output
|
|
| Data type |
|
|
|---|
|
|
| Tensor |
|
|
|
|
<HR>
|
|
Category: PyTorch wrapper - Indexing and Slicing Operations
|
|
|
|
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
|