Commit cb7a0d3
fix(pt): use eval mode in the C++ interface (#4402)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Enhanced error handling for improved clarity during execution.
- Added evaluation mode setting for models to ensure correct inference
behavior.
- **Improvements**
- Streamlined device management in computation methods for better
resource utilization.
- Improved flexibility in handling tensor creation and data transfer.
- Updated computation methods to support new logic for message passing
and mapping tensors.
- Introduced new methods for mixed-type computations, enhancing
functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 5d589da commit cb7a0d3
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments