I’m trying to subclass PyTorch’s multiprocessing.Pool class.
I’m getting this error:
TypeError: method expected 2 arguments, got 3

I was surprised what “method” was the interpreter talking about, so I’ve printed
print ( torch.multiprocessing.Pool) to see what this actually resolves to.
Instead of the usual <class ...> type I was expecting, I got:
<bound method BaseContext.Pool of <multiprocessing.context.DefaultContext object at 0x10f4bd550>>

Which took me a bit by surprise.
I’d appreciate any assistance. Thanks!