Skip to content

Confusion regarding data conversion in experiments.py #2

Description

@arslansadiq

Hi,
Excuse my ignorance, I want to ask that in models_code/experiments.py, function test_eval() has a line y_.cpu().data.numpy()[:, :num_classes].argmax(axis=1).

Now my question is that, why are you using y_.cpu().data.numpy() why not y_.cpu().numpy(), I tested both returns the same output?
First of all what does it mean, secondly, both produces same results, why are you using it in this way then?
One more thing I want to ask is that, for queries related to your paper, should I write issues here or email you guys?

Thank you
Regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions