You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UserWarning: C++ kernel for SRU CPU inference was not loaded. Use Python version instead. warnings.warn("C++ kernel for SRU CPU inference was not loaded. "
#144
Open
lin-lin-qi opened this issue
Nov 12, 2020
· 2 comments
dear teacher: firstly, thanks for much, your work help me in my paper.
when I use SRU to run the example with pytharm where home page show, I have got a warning like this:
""UserWarning: C++ kernel for SRU CPU inference was not loaded. Use Python version instead. warnings.warn("C++ kernel for SRU CPU inference was not loaded. """
and I had try to solve it by baidu, but not work, I am realy hope you can guide me ,
version info: sru2.3.4 & pytorch1.4.0 & python 3.5.4
The text was updated successfully, but these errors were encountered:
@lin-lin-qi
I think you are trying to use your model for inference / testing / demo by running on CPU?
When possible SRU will try to compile a c++ version of its recurrence computation, this will give greater speed when running inference on CPU.
When the compilation of the c++ version or loading of it is not successful, it will default to use a pure python implementation. This version will run slower. See
Hello Professor, are there any versions that support CPU version in the later versions? I want to use SRU to predict coal spontaneous combustion. The data has many characteristics, but the results of small samples have not been realized well. I wonder if it is because the last problem has not been solved###
I wonder if you have any good solutions?
UserWarning: C++ kernel for SRU CPU inference was not loaded. Use Python version instead.
warnings.warn("C++ kernel for SRU CPU inference was not loaded. "
------------------ 原始邮件 ------------------
发件人: "asappresearch/sru" ***@***.***>;
发送时间: 2021年3月20日(星期六) 上午6:25
***@***.***>;
***@***.******@***.***>;
主题: Re: [asappresearch/sru] UserWarning: C++ kernel for SRU CPU inference was not loaded. Use Python version instead. warnings.warn("C++ kernel for SRU CPU inference was not loaded. " (#144)
@lin-lin-qi
I think you are trying to use your model for inference / testing / demo by running on CPU?
When possible SRU will try to compile a c++ version of its recurrence computation, this will give greater speed when running inference on CPU.
When the compilation of the c++ version or loading of it is not successful, it will default to use a pure python implementation. This version will run slower. See https://github.com/asappresearch/sru/blob/f1999734132eb2520aea09bf267660d72a98eb57/sru/sru_functional.py#L110-L112
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
dear teacher: firstly, thanks for much, your work help me in my paper.
when I use SRU to run the example with pytharm where home page show, I have got a warning like this:
""UserWarning: C++ kernel for SRU CPU inference was not loaded. Use Python version instead. warnings.warn("C++ kernel for SRU CPU inference was not loaded. """
and I had try to solve it by baidu, but not work, I am realy hope you can guide me ,
version info: sru2.3.4 & pytorch1.4.0 & python 3.5.4
The text was updated successfully, but these errors were encountered: