CoinCheung / pytorch-loss

label-smooth, amsoftmax, partial-fc, focal-loss, triplet-loss, lovasz-softmax. Maybe useful
MIT License
2.17k stars 374 forks source link

where is the mish_cpp? #13

Closed hhl0202 closed 3 years ago

hhl0202 commented 3 years ago

when i found mish.py ,i see MishV3,but we need "import mish_cpp",can i ask where is the mish_cpp?

CoinCheung commented 3 years ago

Hi,

You need to compile the source with command python setup.py install, then there will be some .so file generated, the .so file is the mish_cpp.

CoinCheung commented 3 years ago

you can find it out like this:

python
>>> import mish_cpp
>>> mish_cpp.__file__
CoinCheung commented 3 years ago

Closing this since you might have figured it out.