Skip to content

Confusion regarding data conversion in experiments.py #2

@arslansadiq

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

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