IntelLabs / MART

Modular Adversarial Robustness Toolkit
BSD 3-Clause "New" or "Revised" License
16 stars 0 forks source link

List of Tensors #116

Closed dxoigmn closed 1 year ago

dxoigmn commented 1 year ago

What does this PR do?

Right now we use tuples to signify a list of Tensors. This PR changes this to a list. Not sure this even makes sense to integrate though. This makes a lot of sense now since I forgot that the tuple could contain dicts or Tensors. Our current type annotations don't make this clear and tuple(torch.Tensor) doesn't make sense as a type annotation because it's defining the type as a tuple with a single element that is a torch.Tensor. Instead we mean that the tuple can contain many torch.Tensors.

One thing that is missing, however, is that we don't have tests for tuple/list of Tensors.

Type of change

Please check all relevant options.

Testing

Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

Before submitting

Did you have fun?

Make sure you had fun coding 🙃

dxoigmn commented 1 year ago

Closing in favor of #134.