We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

SetData

Function Description

Sets the tensor data.

Function Prototype

Collapse
Word wrap
Dark theme
Copy code
  1. void SetData(TensorData &&data)

Parameters

Expand
Parameter Input/Output Description
data Input

Data to be set.

For details about the definition of the TensorData type, see TensorData.

Return Value

None

Restrictions

None

Calling Example

Collapse
Word wrap
Dark theme
Copy code
  1. Tensor t = {{}, {}, {}, {}, nullptr};
  2. void *a = &t;
  3. TensorData td(a, nullptr);
  4. t.SetData(std::move(td));
Search in Guides
Enter a keyword.