monchin

Results 22 comments of monchin

@MrZLeo 不就是对整片区域逐字节置零吗,1u8就是1个字节

It seems `black` does not check docstring's length.

I'm not familiar with `ruff`, seems it failed because I created a new `tests/test_reinstall.py` file

> Have you tried logging to `stderr` instead of a file? > > ```python > import sys > ... > logger.remove() > logger.add(sys.stderr, enqueue=True) > ``` I haven't, because I...

> @monchin Both `sys.stderr` and `"file.log"` handlers aren't picklable by default. To use them properly with `multiprocessing`, they need to be configured with `enqueue=True`. When `enqueue=True`, they became picklable. >...

> @monchin Thanks for the feedback. I agree with you that Loguru isn't very convenient to use with `multiprocessing` and you're not the first one to express this. > >...

@lmcinnes Thank you for the awesome project. I also found it seems that `transform()` is somehow much slower than `fit()`. I have 2 numpy array, `data1` is about 400,000\*22, and...

> is it necessary? what's different in this situation? [this answer](https://stackoverflow.com/questions/20516773/stdunique-lockstdmutex-or-stdlock-guardstdmutex#:~:text=A%20lock_guard%20always%20holds%20a%20lock%20from%20its,lock_guard%2C%20unless%20you%20need%20the%20capabilities%20of%20unique_lock.) is good. For `condition_variable` we should use `unique_lock`

How is it going now? It would be a really helpful feature such if I use fastapi in an async funtion to run a cpu-indensive task but failed, with this...