View Single Post
Old 11-06-2022, 08:35 AM   #1
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
Python optimize level

I'm trying to use spaCy's transformer model in calibre, it uses the "transformer" package which has a line code uses docstring: https://github.com/huggingface/trans..._base.py#L3646

But calibre's optimize level is 2, which removes docstrings. How can I change this optimize level to a lower level?
xxyzz is offline   Reply With Quote