简体   繁体   English

为什么tensorflow /模型不属于TensorFlow API? Python模块?

[英]Why isn't tensorflow/models not part of the TensorFlow API? Python module?

The repository https://github.com/tensorflow/models has a lot of useful functionality such as its MNIST loading module . 仓库https://github.com/tensorflow/models具有许多有用的功能,例如MNIST加载模块 However, I don't think any of the code is exposed as part of the public Python TensorFlow interface. 但是,我认为没有任何代码作为公共Python TensorFlow接口的一部分公开。

Why is it not part of the public API? 为什么它不属于公共API?

Seems like a sensible to me. 对我来说似乎很明智。 These are examples where the TensorFlow library has been used in order to solve a specific problem/example. 这些是使用TensorFlow库来解决特定问题/示例的示例。

It makes sense that the code used to solve these problems should be entirely separate from the main library/framework API, no? 有道理的是,用于解决这些问题的代码应与主库/框架API完全分开,不是吗?

ALthough, if you are specifically interested in loading the NIST dataset note that there's now an example dataset available under the keras api: 但是,如果您对加载NIST数据集特别感兴趣,请注意, keras api下现在提供了一个示例数据集:

mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM