Skip to content

There is a problem with the official learning document #531

@Peaceuai

Description

@Peaceuai

I found two problems in the following official website documents

Document address: https://learn.microsoft.com/en-us/windows/ai/windows-ml/tutorials/pytorch-train-model

The first problem is that the code in the following picture example does not call the model.train() method to train the model in each epoch, because the train() method calls the testAccuracy() method and the testAccuracy() method calls the model.eval() method, which will cause the model to be trained through model.eval() in subsequent model training. In this case, if there is a Dropout layer or a BatchNorm layer in the CNN network, this will cause both of them to not work.
Image

The second problem is that the text in the following picture shows that CNN is written as CCN.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions