-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add domain modules trained End-to-End (#149)
Allow for some domain modules to be trained end-to-end with the global workspace. This brings some breaking changes: 1. `DomainModule.compute_loss` and `DomainModule.compute_*_loss` now require an 3rd parameter `raw_target: Any` that stores the raw domain input (before being encoded). This is usefull for unimodal losses that require the actual inputs to compute the loss. 2. `GWLossesBase.step` requires a new first argument `raw_data: RawDomainGroupsT` to pass the `raw_targets` to the domain modules. 1) needs to be changed in all projects that implement a `DomainModule` (every project). 2) has probably less impact as most project won't redefine a Loss module.
- Loading branch information
Showing
9 changed files
with
251 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.