TensorFlow函数教程:tf.io.decode_json_example

2019-02-18 16:49 更新

tf.io.decode_json_example函数

别名:

  • tf.decode_json_example
  • tf.io.decode_json_example
tf.io.decode_json_example(
    json_examples,
    name=None
)

将JSON编码的Example记录转换为二进制协议缓冲区字符串。

该操作将包含使用标准JSON映射编码的Example记录的张量转换为包含编码为二进制协议缓冲区的相同记录的张量。然后可以将得到的张量馈送到任何其他示例解析操作。

参数:

  • json_examples:一个string类型的Tensor。每个字符串都是根据Example proto的JSON映射序列化的JSON对象。
  • name:操作的名称(可选)。

返回:

一个string类型的Tensor。

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号