Skip to content

Details about implementation #1

@akshayv1

Description

@akshayv1

Hi,
Thanks for making the code publicly available. I had some questions about the implementation and it would be great if you could clarify them.

  1. I had some trouble understanding when the classifier is updated? Does the algorithm involve first tuning the embedding function (assuming random weights of classifier) and then updating the classifier? Or since the embedding function updates depend on the weights of the classifier(because of the boundary adversarial example), does this happen iteratively (update the embedding function, then classifier, again the embedding function and so on)?

  2. I was also facing issues running the code on Python3 with Pytorch 1.7.1. Training runs smoothly, but when running evaluation_finetune.py, I get "RuntimeError: derivative for floor_divide is not implemented" when backpropagating the loss. I had some trouble understanding which operation was causing this error.

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