Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tensorflow tfjs节点中出错,错误:会话无法运行,错误为:音频\u id:0已馈送和获取_Tensorflow_Tensorflow.js_Tfjs Node - Fatal编程技术网

Tensorflow tfjs节点中出错,错误:会话无法运行,错误为:音频\u id:0已馈送和获取

Tensorflow tfjs节点中出错,错误:会话无法运行,错误为:音频\u id:0已馈送和获取,tensorflow,tensorflow.js,tfjs-node,Tensorflow,Tensorflow.js,Tfjs Node,我正在通过Node.js(@TensorFlow/tfjs Node)使用TensorFlow backend for TensorFlow.js来运行Node.js中的预训练tf模型,但我在尝试将数据传递给模型时出错 模型的输入是通过tf.node.getMetagraphFromSavedModel(path)获得的: 加载模型工作正常,但当我尝试运行以下代码时: const inputs = { audio_id: tf.tensor(['id'])

我正在通过Node.js(@TensorFlow/tfjs Node)使用TensorFlow backend for TensorFlow.js来运行Node.js中的预训练tf模型,但我在尝试将数据传递给模型时出错
模型的输入是通过
tf.node.getMetagraphFromSavedModel(path)
获得的:

加载模型工作正常,但当我尝试运行以下代码时:

        const inputs = {
            audio_id: tf.tensor(['id']),
            mix_spectrogram: tf.randomNormal([2, 512, 1024, 2]),
            mix_stft: tf.randomNormal([2, 2049, 2]),
            waveform: tf.randomNormal([2, 2])
        };
        const output = model.predict(inputs)
我收到以下错误消息:

错误:会话无法运行,错误为:音频\u id:0已馈送和获取

似乎
audio\u id
既是输入又是输出,并且指向同一个占位符。 如何解决此错误?

谈到了此问题,但没有解决方案,您是否可以尝试升级tensorflow,如果无法解决,请在github页面上发布新问题。
        const inputs = {
            audio_id: tf.tensor(['id']),
            mix_spectrogram: tf.randomNormal([2, 512, 1024, 2]),
            mix_stft: tf.randomNormal([2, 2049, 2]),
            waveform: tf.randomNormal([2, 2])
        };
        const output = model.predict(inputs)