Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
Error no detectado: tensor3d() requiere que los valores sean number[][][] o flat/TypedArray

Para tensorflow.js, obtuve 3 ubicaciones en formatos: [location id, location x, location y]

 input=[ ['a',0,0], ['b',3,0], ['c',0,4] ]

Quiero que la distancia de ruta más corta pase por todas las ubicaciones, creando permutaciones, luego calcule la distancia total de cada ruta, luego seleccione la ruta más corta sería c→a→b

 output=['c','a','b']

Pero, ¿cómo establecer la identificación de ubicación como etiqueta?

 const tfInput = tf.tensor3d(input) const tfOutput = tf.tensor(output) const model = tf.sequential(); model.add(tf.layers.dense({ units: 1, inputShape: [1,3,3] }))
 Uncaught Error: tensor3d() requires values to be number[][][] or flat/TypedArray

jfiddle

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!