Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何正确显示Pytork';docstring中的数学符号是什么?_Python_Pytorch_Docstring - Fatal编程技术网

Python 如何正确显示Pytork';docstring中的数学符号是什么?

Python 如何正确显示Pytork';docstring中的数学符号是什么?,python,pytorch,docstring,Python,Pytorch,Docstring,查看Pytorch函数的docstring时,数学符号未正确显示,例如: 只有当我使用IDE显示文档时,它才能正确地呈现latex符号 网站上是否有显示数学的开关?源代码中的文档将不会呈现,除非您尝试通过Greasemonkey等进行脚本注入。 但是首先看看标准文档,在那里你可以找到 .. math:: \text{loss}(x, class) = weight[class] \left(-x[class] + \log\left(\sum_j \exp(x[j])\right)\r

查看Pytorch函数的docstring时,数学符号未正确显示,例如:

只有当我使用IDE显示文档时,它才能正确地呈现latex符号


网站上是否有显示数学的开关?

源代码中的文档将不会呈现,除非您尝试通过Greasemonkey等进行脚本注入。 但是首先看看标准文档,在那里你可以找到

.. math::
    \text{loss}(x, class) = weight[class] \left(-x[class] + \log\left(\sum_j \exp(x[j])\right)\right)