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

train_utils.py 390 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  1. class MapDict(dict):
  2. """todo: add doc."""
  3. def __getattr__(self, key):
  4. try:
  5. return self[key]
  6. except KeyError as k:
  7. raise AttributeError(k)
  8. def __setattr__(self, key, value):
  9. self[key] = value
  10. def __delattr__(self, key):
  11. try:
  12. del self[key]
  13. except KeyError as k:
  14. raise AttributeError(k)
Tip!

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

Comments

Loading...