s22chan

Results 14 comments of s22chan

```python from dependencies import Injector from lazy_object_proxy import Proxy class Outer: def __init__(self, inner): self.inner = inner class Inner: def __init__(self): print("inner") class Root(Injector): outer = Outer inner = Inner...

sorry I realize I didn't complete the example: ```python class Root(Injector): outer = Outer @value def inner(): return Proxy(Inner) ``` is how I would use it, so I would've liked...

odd I'm not sure why I get a different result running your sample. I'll debug it later. Thanks again for the great support: ```python In [2]: o = Container.outer inner...

I've tried both, it still outputs inner. I've also tried python 3.7..3.9. The only time I don't see this is if I rollback dependencies to 6.0.1 (from 7.1.7) I'll update...

Hacking it that way could cause silent errors (especially if different args are passed concurrently to the jit) Looks like `DataParallel` is [multi-threaded](https://github.com/pytorch/pytorch/blob/37e3c8f33f165f25184a573183d2aca878b84476/torch/nn/parallel/parallel_apply.py#L79-L85) and Triton doesn't appear to be [thread-safe](https://github.com/openai/triton/blob/0bd315f6be50cd8b8f9a25107bd4aca5f69bb853/python/triton/runtime/autotuner.py#L124-L164)....

FYI I was just looking at this and you can achieve it reasonably with https://gist.github.com/sklam/40f25167351832fe55b64232785d036d (renamed to `numba.extending.intrinsics`), but it requires a bit of llvm work.

Isn't this a matter of a delayed init after forking? This fixes wandb from initializing 4 times (on a vx-8) and having mixed stream ids. ```diff @@ -59,12 +59,14 @@...

After debugging this for a bit, the issue is that you *have* to `wandb.login` before the fit (before the forks?). eg: ```diff @@ -59,12 +59,14 @@ data = LinearDataModule() model...

as an aside, I had a (user) issue with consolidating all under one run: #### TLDR Either set things up on Google's TPU VMs via: ``` python3 -m pip install...