概要
This skill provides structured guidance for migrating PyTorch models into high-performance, native command-line applications. It streamlines the complex process of analyzing model architectures, extracting weights from .pth files, and implementing neural network forward passes directly in languages like C, C++, or Rust. By focusing on critical implementation details—such as matrix multiplication dimension ordering, image preprocessing normalization, and numerical verification against PyTorch reference outputs—it enables developers to create portable, efficient inference tools for environments where Python is unavailable or suboptimal.