๋ชฉ๋กAI Vision Lab/Code Review (1)
๐๐๐ ๐๐๐๐บ๐๐๐๐๐
[Code] Studying Pytorch for Deep Learning Models
1. Using @torch.no_grad() It's a decorator used in Pytorch that disables automatic differentiation. This means that gradients are not calculated within the scope of this function.Since the goal is not to update model weights but rather generate results, it is primarily used during the inference phase.2. torch.randn() vs torch.randn_like() ~ to be continued ~ ~ gonna keep updating ~
AI Vision Lab/Code Review
2025. 1. 4. 23:20