dump_feature#
(s3prl.task.dump_feature)
Dump feature Task
- Authors
Yist Y. Lin 2021
Leo 2022
DumpFeature#
- class s3prl.task.dump_feature.DumpFeature(model: Module, dump_feat_dir: str = 'feat')[source][source]#
Bases:
Task
- forward(split: str, x, x_len, unique_name, _dump_dir: str)[source][source]#
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.