Python 没有名为helpers的模块

Python 没有名为helpers的模块,python,tensorflow,Python,Tensorflow,我正在运行时尝试导入帮助程序 . 但是,这报告了一个错误:ImportError:没有名为helpers的模块。我在pypi中找不到任何合适的包。如何获得第三方软件包 以下是教程片段 In [1]: x = [[5, 7, 8], [6, 3], [3], [1]] While manipulating such variable-length lists are convenient to humans, RNNs prefer a different layout: In [2]: impo

我正在运行时尝试导入帮助程序 . 但是,这报告了一个错误:ImportError:没有名为helpers的模块。我在pypi中找不到任何合适的包。如何获得第三方软件包

以下是教程片段

In [1]:
x = [[5, 7, 8], [6, 3], [3], [1]]
While manipulating such variable-length lists are convenient to humans, RNNs prefer a different layout:
In [2]:
import helpers
xt, xlen = helpers.batch(x)
In [3]:
x
Out[3]:
[[5, 7, 8], [6, 3], [3], [1]]
In [4]:
xt
Out[4]:
array([[5, 6, 3, 1],
       [7, 3, 0, 0],
       [8, 0, 0, 0]], dtype=int32)


注意:帮助程序不是帮助程序

您要查找的
帮助程序
模块由链接教程的创建者创建

(它不是tensorflow包中的一个),您可以通过克隆整个GitHub或只下载