We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f2f24 commit 68318d2Copy full SHA for 68318d2
tuning/data/data_handlers.py
@@ -47,11 +47,10 @@ def __init__(
47
self.allows_batching = allows_batching
48
49
def __str__(self):
50
- return f"DataHandler(op={\
51
- self.op.__name__ if hasattr(self.op, '__name__') else str(self.op)\
52
- },\
53
- handler_type={self.handler_type.name},\
54
- allows_batching={self.allows_batching})"
+ o = self.op.__name__ if hasattr(self.op, "__name__") else str(self.op)
+ n = self.handler_type.name
+ b = self.allows_batching
+ return f"DataHandler(op={o}, handler_type={n}, allows_batching={b})"
55
56
57
### Utils for custom masking / manipulating input / output strs, etc
0 commit comments