ubuntu 调用tflite结构出现Aborted (core dumped
tensorflow吧
全部回复
仅看楼主
level 1
大当家zp 楼主
from tensorflow import lite
import pdb
import numpy as np
import time
data=np.fromfile('random.raw',dtype=np.float32)
print data
start = time.time()
interpreter = tf.lite.Interpreter("1.tflite")
print interpreter
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
interpreter.set_tensor(input_details[0]['index'], data)
interpreter.invoke()
output_data = interpreter.get_tensor(output_details[0]['index'])
当调用interpreter.allocate_tensors()时,就会出现Aborted (core dumped。
1.tensorflow version:1.13.1
2.operation system :ubuntu16.04 ,vmware 虚拟机
2019年05月21日 08点05分 1
1