How can read a chunk of data and store the data in the local memory? Like load_tensor_into_local?
When we use load instructions, it load the data to VRF or SRF, the you can define a local memory outside of main function and save the loaded data to that defined local memory for later reuse, similar things for store data back.
For example,
local float64 local_array[2];
void main(tensor input_ifm,…)
{
// define your input coordinate
float64 data = v_f32_ld_tnsr_b(ifmCoords, input_ifm)
local_array[0] = data;
…
float64 x1=local_array[0];
…
}
Thanks a lot for your explanation.