22 lines
502 B
Markdown
22 lines
502 B
Markdown
# Pt Compute Loss
|
|
Computes loss for the input with the target using the specified loss function.
|
|
|
|
The user does not normally need to use this node. Instead the user should use training nodes that accept a loss object.
|
|
|
|
## Input
|
|
| Name | Data type |
|
|
|---|---|
|
|
| input_tens | Tensor |
|
|
| target_tens | Tensor |
|
|
| loss | Ptloss |
|
|
|
|
## Output
|
|
| Data type |
|
|
|---|
|
|
| Tensor |
|
|
|
|
<HR>
|
|
Category: PyTorch wrapper - Training
|
|
|
|
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
|