Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Sets the tensor data.
- void SetData(TensorData &&data)
| Parameter | Input/Output | Description |
|---|---|---|
| data | Input | Data to be set. For details about the definition of the TensorData type, see TensorData. |
None
None
- Tensor t = {{}, {}, {}, {}, nullptr};
- void *a = &t;
- TensorData td(a, nullptr);
- t.SetData(std::move(td));