Skip to content

Loading .pt model weightsΒ #35

Open
@StudyingLover

Description

@StudyingLover

Describe the Feature

I have trained a PyTorch model, and I want to directly load this model and run inference in a browser. However, the current method for loading the weights requires defining the model first.

Motivation [optional]

No response

Sample Code

for example

const { torch } = require("js-pytorch");

const model = torch.load("model.pth")

Would you like to work on this issue?

None

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions