Skip to content

Commit 9b29b4b

Browse files
authored
Update training module to have super class methods accessible (#7082)
Update training module to have super class methods accessible (#7082) Summary: This is needed so the training module has access to non-training methods (e.g. constant string return methods). Reviewed By: JacobSzwejbka Differential Revision: D66419247
1 parent 1c7d94e commit 9b29b4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extension/training/module/training_module.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ namespace training {
2626
* A facade class for loading programs for on-device training and executing
2727
* methods within them.
2828
*/
29-
class ET_EXPERIMENTAL TrainingModule final : executorch::extension::Module {
29+
class ET_EXPERIMENTAL TrainingModule final
30+
: public executorch::extension::Module {
3031
public:
3132
explicit TrainingModule(
3233
std::unique_ptr<runtime::DataLoader> data_loader,

0 commit comments

Comments
 (0)