我出于开发目的而使用ipython notebook
,并且每当我需要查看某个功能的文档时,通常都使用键盘快捷键shift+tab
或
help(foo)
,但是文档中包含无法正确呈现的数学符号。是否可以查看呈现的文档?
例如:这是我所见功能的文档之一
torch.nn.modules.rnn模块中有关LSTM类的帮助:
class LSTM(RNNBase)
| Applies a multi-layer long short-term memory (LSTM) RNN to an input
| sequence.
|
|
| For each element in the input sequence, each layer computes the following
| function:
|
| .. math::
| \begin{array}{ll} \\
| i_t = \sigma(W_{ii} x_t + b_{ii} + W_{hi} h_{(t-1)} + b_{hi}) \\
| f_t = \sigma(W_{if} x_t + b_{if} + W_{hf} h_{(t-1)} + b_{hf}) \\
| g_t = \tanh(W_{ig} x_t + b_{ig} + W_{hg} h_{(t-1)} + b_{hg}) \\
| o_t = \sigma(W_{io} x_t + b_{io} + W_{ho} h_{(t-1)} + b_{ho}) \\
| c_t = f_t c_{(t-1)} + i_t g_t \\
| h_t = o_t \tanh(c_t) \\
| \end{array}
|
如果函数包含乳胶/数学符号,是否可以查看该函数的呈现文档?