Powered By GitBook
Series.tensor
Obtain the tensor representation of the values in a Series
danfo.Series.tensor [source]
Parameters: None
Returns: Tensorflow tensor
Example
Node
1
const dfd = require("danfojs-node")
2
3
let data1 = [30.21091, 40.190901, 3.564, 5.0212]
4
let sf1 = new dfd.Series(data1)
5
6
console.log(sf1.tensor)
Copied!
Output
1
Tensor {
2
kept: false,
3
isDisposedInternal: false,
4
shape: [ 4 ],
5
dtype: 'float32',
6
size: 4,
7
strides: [],
8
dataId: {},
9
id: 2,
10
rankType: '1',
11
scopeId: 0
12
}
Copied!
Last modified 1yr ago
Copy link