Skip to content

Trying to understand your implementation of imnet-fast-gradient.py #3

Open
@savan77

Description

@savan77

Hi,
I am not getting couple of things in your implementation of imnet-fast-gradient.py.

1- In line 59, you say we don't min/max because of torch's own stuff. I am new to imagenet and not getting it. Why PyTorch is the problem here? Can you please give me more details on this?

2- In line 53, you pass 'output' and 'y' to the loss function. In your implementation, 'y' is the index of label predicted by our model (then converted into LongTensor). However, in the original paper author refers to 'y' as the true label. Is it a mistake or am I missing something?

Thanks

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