Skip to content

Files

Latest commit

472c81d · Jul 25, 2023

History

History

api-usage_tensor

API usage - Create Tensor

Summary

This example is a demonstration of basic usage of Tensor.

  • tensor-create.js: In this example, we create tensors in different ways.
  • tensor-properties.js: In this example, we get tensor properties from a Tensor object.

See also Tensor constructor and Tensor interface in API reference document.

Usage

npm install
node ./tensor-create.js
node ./tensor-properties.js