Skip to content

RuntimeError: Input type (MPSFloatType) and weight type (torch.FloatTensor) should be the same. #791

Answered by iam-dante
iam-dante asked this question in Q&A
Discussion options

You must be logged in to vote

So after experiments don't run the summary code

from torchinfo import summary

summary(model=model,
        input_size=(1,3,224,224),
        col_names=["input_size", "output_size", "num_params", "trainable"],
        col_width=20,
        row_settings=["var_names"])

The make the model back to cpu.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@justinkkgoh
Comment options

@ringdk
Comment options

Answer selected by iam-dante
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants