SwanLab
SwanLab copied to clipboard
[QUESTION] Console Buffer
🤔 Question description [Please make everyone to understand it]
We have the Consonler
class to controll the prints and logs, sending them to terminal and log file.
But in different process models, initialization parameter passing varies.
1. In the main process
Only allow one buffer: super().__init__(sys.stdout.buffer)
2. In Subprocess
Two buffer required: super().__init__(buffer1, buffer2)
To handle it, we can do this: