vcopy
Function
vcopy instruction abstraction.
Copies tensors at the source address to the destination address.
Prototype
1 | class vcopy(x, y) |
Parameters
Parameter |
Input/Output |
Data Type |
Description |
|---|---|---|---|
x |
Input |
Tensor variable |
Input vector tensor. int16, int32, uint16, and uint32 are supported. |
y |
Output |
Tensor variable |
Output vector tensor. int16, int32, uint16, and uint32 are supported. |
Example
1 2 3 4 5 | from mskpp import vcopy, Tensor ub_x, ub_y = Tensor("UB"), Tensor("UB") gm_x = Tensor("GM") ub_x.load(gm_x) out = vcopy(ub_x, ub_y)() |
Parent topic: Description of msKPP External APIs