title: Error constructing Array1D
body: <p>I am trying to start learning machine learning using deeplearn.js in node-red.</p>
  
  <p>To start with this I created the simple <code>Inject&gt;Function&gt;Debug</code> node flow, imported the library and copied the <a href="https://deeplearnjs.org/#getting-started" rel="nofollow noreferrer">Getting Started</a> example with edits to work within node-red.
  This looks like this:</p>
  
  <pre><code>dl = global.get('dl');
  const math = dl.ENV.math;
  
  const a = dl.Array1D.new([1,2,3]);
  //const a = dl.Scalar.new(2);
  const b = dl.Scalar.new(2);
  
  const result = math.add(a, b);
  return {payload: result.dataSync()};
  </code></pre>
  
  <p>the problem ist that <code>dl.Array1D.new([1,2,3]);</code> throws </p>
  
  <blockquote>
    <p>Error: Error constructing Array1D. Shape of values  is not 1 dimensional.</p>
  </blockquote>
  
  <p>If "a" is a Scalar or Array2D everything works fine.
  Does someone has an idea where this Array is not 1 dimensional or how to force it to be?</p>