Simão GonçalvesHow to quickly zero out the loss of padded inputsWhen batching sequence data to feed to a pytorch model, one needs to pad the sequences in a batch with zeros so that all sequences have the…Aug 3, 2022Aug 3, 2022
Simão GonçalvesWhen you forget to follow the design of generators | python & pandas optimizationMotivatorJul 10, 2022Jul 10, 2022
Simão Gonçalvescomplexity of operator: any | python & pandas optimizationWhat is the difference between python’s any() and pandas’ df.any()?Jul 9, 2022Jul 9, 2022