100 patches will be created as you will get 10 patches in each spatial dimension.
If you need 12, you could add padding via F.pad to the input before the patch generation.
Note that these “outer” patches will have the padding values, which might or might not influence your further calculations.