Sorry by “grep” I mean grep the contents of all files under aten/src/TH:
[0] richard@:~/pytorch/pytorch/aten/src/TH (master) $ ag -Q "THTensor_(sigmoid)
"
generic/THTensorMath.h
154:TH_API void THTensor_(sigmoid)(THTensor *r_, THTensor *t);