Tensor
Direct Subclass:
class Tensor is the primitive class for composing higher tensor based class. This class wrap tensorflowjs for providing tensor calculation
Example:
import { Tensor, causalNetCore } from 'causal-net.core';
let tensor = new Tensor();
let T = causalNetCore.CoreTensor;
let ta = T.tensor([1, 2]);
console.log(tensor.isTensor(ta));
console.log(tensor.isTensor([1,2,3]));
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
CoreTensor: * This method return the core tensor instance |
|
public |
T: * |
Method Summary
Public Methods | ||
public |
isTensor(object: Object ): Boolean Check if object is tensor |
Public Constructors
public constructor() source
Public Members
public T: * source
Public Methods
public isTensor(object: Object ): Boolean source
Check if object is tensor
Params:
Name | Type | Attribute | Description |
object | Object |
Return:
Boolean | true if input is tensor |