2.2.2 : Global Padding



Global padding can be used when data access can have issue only on the top or bottom of the full allocated tensor. In such case, a global padding can be declared with padding keyword.

Example :
1
2
3
4
5
///Table of values
TableVertex{
	///Image with padding
	Tensor(float, nbSlice, nbPixel, padding=(1,0,0)) image;
}
In this case, the global padding will have (1*nbSlice + 0*nbPixel + 0) elements before the first element we can access with getImageFull method, and also (1*nbSlice + 0*nbPixel + 0) elements at the end of the alocated tensor.

These padding will not be stored in HDF5 file.