[Vuejs]-Tensorflow model console error: "Error: Argument 'x' passed to 'slice2d' must be numeric tensor, but got string tensor"

1👍

Your xValues and yValues are being turned into strings from the dialogues.

Turn them back into nums by adding this to the top of your train() method

      this.xValues = this.xValues.map(value=>{return parseInt(value)});
      this.yValues = this.yValues.map(value=>{return parseInt(value)});
👤Abe

Leave a comment