tensorflow在写入tfrcords文件时, 报错:
TypeError: expected bytes, Example found
注意:字符串为一个序列化的Example,Example.SerializeToString()
所以代码应为:
file.write(example.SerializeToString())
tensorflow在写入tfrcords文件时, 报错:
TypeError: expected bytes, Example found
注意:字符串为一个序列化的Example,Example.SerializeToString()
所以代码应为:
file.write(example.SerializeToString())