對于 dataSync 和 arraySync,我都收到了這個錯誤。定義了模型并檢索了結(jié)果。正在執(zhí)行的代碼: const result = await faceLandmarkModel.executeAsync({ Placeholder: images_pl }); console.log(result[0]); const emb_values = result[0].dataSync();張量對象:Tensor { kept: false, isDisposedInternal: false, shape: Array(4), dtype: "float32", size: 716130, dataId: {}, dtype: "float32", id: 123347 isDisposedInternal: false, kept: false rankType: "4" scopeId: 283898 shape: (4) [1, 365, 654, 3] strides: (3) [716130, 1962, 3] }有人知道嗎?任何幫助將不勝感激。
Tensorflow.js TypeError:無法讀取未定義的屬性“arraySync”
汪汪一只貓
2023-02-24 15:56:00