TensorFlow 学习(十五)—— tensorflow.python.platform
2024-08-23 07:45:45
tensorflow.python.platform 下的常用工具类和工具函数:tensorflow/tensorflow/python/platform at master · tensorflow/tensorflow · GitHub
1. gfile
- tensorflow.python.platform.gfile 常用 api:Suggested API’s for “tensorflow.python.platform.gfile.”
- 随着 tensorflow 版本升级,gfile 已进一步提升至 tf.gfile 下;
那么什么情况下使用 tf.gfile 呢,其主要作用有以下两点:
Why use tensorflow gfile? (for file I/O)
- 提供类似 Python 的
file
对象的 api; - 提供基于 tensorflow 下的 C++ FileSystem API 的实现;
- tf.gfile 是对文件系统的抽象;
- local files,
- Google Cloud Storage (using a gs:// prefix),
- and HDFS (using an hdfs:// prefix)
- tf.gfile 是对文件系统的抽象;
最新文章
- 【krpano】krpano xml资源解密(破解)软件说明与下载(v1.2)
- 使用github与jekyll搭建个人博客(一)
- FreeMarker 学习
- 【转发】linux yum命令详解
- c++有默认参数的函数---4
- PhotoShop常用快捷键(1)
- Qt Style Sheets Examples(官方例子目录,很全)
- Spring RESTful服务接收和返回JSON最佳实践
- gitlab 取消注册功能
- Qt 自定义按钮
- 20145338 《网络对抗》 MSF基础应用
- LeetCode(120):三角形最小路径和
- 微信小程序FAQ
- nc用法【转】
- Go第八篇之包的使用
- kubernetes实战(三):k8s v1.11.1 持久化EFK安装
- 庞老师集群.ziw
- not1,not2,bind1st和bind2nd详解
- flutter 快捷键
- UE4 框架