Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[Retiarii] Improve high-level API interface and add implementation of ValueChoice #3349

Merged
merged 11 commits into from
Feb 3, 2021

Conversation

ultmaster
Copy link
Contributor

@ultmaster ultmaster commented Jan 28, 2021

  • Code refactor.
  • ValueChoice implementation.
  • Test.

This will be done separately in another PR.

  • Support ValueChoice as input argument of blackbox module.

@J-shang J-shang mentioned this pull request Jan 29, 2021
94 tasks
@ultmaster ultmaster marked this pull request as ready for review February 1, 2021 01:12

def forward(self, candidate_inputs: List[torch.Tensor]) -> torch.Tensor:
warnings.warn('You should be run forward of this module directly.')
return candidate_inputs[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please double check whether this works in our examples in test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked.

@ultmaster ultmaster merged commit 8c8db37 into microsoft:master Feb 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants