Skip to content

TypeError: 'mode' should be a torch.onnx.TrainingMode enum, but got '<class 'bool'>'. #85

@jizhang02

Description

@jizhang02

Hello,

I used tensorwatch to test a network,

import tensorwatch as tw
import torchvision.models

alexnet_model = torchvision.models.alexnet()
tw.draw_model(alexnet_model, [1, 3, 224, 224])

but error happened like below:
image

Is there any solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions