下面的代码是我模型的一部分,它试图进行线性插值,类似于numpy.interp()。在我的模型中,t的形状为(64,64)。x的形状为(91,)。y的形状为(91,)。deftf_interp(b,x,y):xaxis_pad=tf.concat([[tf.minimum(b,tf.gather(x,0))],x,[tf.maximum(b,tf.gather(x,height_sino-1))]],axis=0)yaxis_pad=tf.concat([[0.0],y,[0.0]],axis=0)cmp=tf.cast(b>xaxis_pad,dtype=tf.float32)dif