Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#290 Fix flake8 errors in test

Merged
Ofri Masad merged 1 commits into Deci-AI:master from deci-ai:hotfix/SG-000-fix_flake8_errors_test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  1. from super_gradients.training.trainer import Trainer
  2. class KDTrainer(Trainer):
  3. """
  4. Class for running SuperGradient's recipes for KD Models.
  5. See train_from_kd_recipe example in the examples directory to demonstrate it's usage.
  6. """
  7. @classmethod
  8. def build_model(cls, cfg):
  9. cfg.sg_model.build_model(student_architecture=cfg.student_architecture,
  10. teacher_architecture=cfg.teacher_architecture,
  11. arch_params=cfg.arch_params, student_arch_params=cfg.student_arch_params,
  12. teacher_arch_params=cfg.teacher_arch_params,
  13. checkpoint_params=cfg.checkpoint_params, run_teacher_on_eval=cfg.run_teacher_on_eval)
Discard
Tip!

Press p or to see the previous file or, n or to see the next file