Skip to content

solved onnx inference tensor to numpy conversion#27

Open
saifulislam79 wants to merge 1 commit intoneuphonic:mainfrom
saifulislam79:dev-saiful
Open

solved onnx inference tensor to numpy conversion#27
saifulislam79 wants to merge 1 commit intoneuphonic:mainfrom
saifulislam79:dev-saiful

Conversation

@saifulislam79
Copy link
Copy Markdown

ONNX Inference

The model supports ONNX inference. PyTorch tensors are automatically converted to numpy arrays for compatibility:

# Tensors are automatically converted to numpy arrays
if isinstance(codes, torch.Tensor):
    codes = codes.detach().cpu().numpy()

This ensures seamless integration between PyTorch and ONNX runtime.

@harryjulian harryjulian self-requested a review January 15, 2026 16:07
Copy link
Copy Markdown
Contributor

@harryjulian harryjulian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy to merge if you remove the changes to the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants