求助各位大神,急!!!!!
tensorflow吧
全部回复
仅看楼主
level 1
安卓调用tensorflow出现如下问题,请问该怎么办
Dimensions of inputs should match: shape[0] = [1,10] vs. shape[1] = [40,10]
py定义部分:
time_step=20
rnn_unit=10
batch_size=40
input_size=1
output_size=1
lr=0.00073
train_x,train_y=[],[]
#tf.reset_default_graph()
for i in range(len(normalize_data)-time_step-1):
x=normalize_data[i:i+time_step]
y=normalize_data[i+1:i+time_step+1]
train_x.append(x.tolist())
train_y.append(y.tolist())
X=tf.placeholder(tf.float32, [None,time_step,input_size],name="input3")
#X=tf.placeholder(tf.float32, [None,time_step,input_size],name="input4")
#X=tf.placeholder(tf.float32,None,name="input4")
Y=tf.placeholder(tf.float32, [None,time_step,output_size])
安卓调用部分
Trace.beginSection("feed");
//inferenceInterface.feed(inputName, inputs, WIDTH, HEIGHT);
inferenceInterface.feed(inputName, inputs, 1,20,1);
Trace.endSection();
2018年12月04日 11点12分 1
level 6
飘过\(〇_o)/
2018年12月09日 09点12分 2
level 1
请问楼主最后怎么解决的
2019年03月19日 06点03分 3
1