Skip to content Skip to sidebar Skip to footer

The Location Of Source Code For Torch.mean()

I'm trying to find the source code for torch.mean and am unable to find it in the pytorch github. It is under math operations but I can't find it at all. I've looked everywhere and

Solution 1:

Since operations components are written in C++, they are not callable with operations such as ?? or "__file__" or "getsourcefile" type of operations.

The files appear to be here, written in C++:

https://github.com/pytorch/pytorch/blob/master/caffe2/operators/mean_op.cchttps://github.com/pytorch/pytorch/blob/master/caffe2/operators/mean_op.h

Post a Comment for "The Location Of Source Code For Torch.mean()"