danfo.tensorflow
Exported internal Tensoflow.js library
danfo.tensorflow
Returns:
return Tensorflow.js library
Examples
const dfd = require("danfojs-node")
const tf = dfd.tensorflow
let tensor_arr = tf.tensor2d([[12, 34, 2.2, 2], [30, 30, 2.1, 7]])
console.log(tensor_arr)
Tensor {
kept: false,
isDisposedInternal: false,
shape: [ 2, 4 ],
dtype: 'float32',
size: 8,
strides: [ 4 ],
dataId: {},
id: 4,
rankType: '2'
}
Last updated
Was this helpful?