microsoft / tensorwatch

Debugging, monitoring and visualization for Python Machine Learning and Data Science
MIT License
3.42k stars 362 forks source link

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

Open jizhang02 opened 12 months ago

jizhang02 commented 12 months ago

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?