Table of Contents

Migrating from TorchSharp

Guide for migrating existing TorchSharp code to DotCompute.

🚧 Documentation In Progress - TorchSharp migration guide is being developed.

Overview

This guide helps developers migrate from TorchSharp to DotCompute.

Key Differences

Execution Model

TODO: Document execution model differences

API Style

TODO: Explain API design differences

Memory Management

TODO: Cover memory management differences

Migration Path

Step 1: Assessment

TODO: Document assessment process

Step 2: Dependency Replacement

TODO: Explain dependency updates

Step 3: Code Refactoring

TODO: Document code refactoring patterns

Step 4: Testing

TODO: Explain testing strategy

Common Patterns

Tensor Operations

TODO: Map TorchSharp tensor operations to DotCompute

Model Definition

TODO: Document model definition migration

Training Loop

TODO: Explain training loop migration

Performance Comparison

TODO: Document performance characteristics

Examples

TODO: Provide migration examples

Troubleshooting

TODO: List common issues

See Also