PyTorch C implementations are in the `aten` directory: https://github.com/pytorch/pytorch/tree/31232061aa4779c7db5ebb2d9f89c75cea77c177/aten How do objects implemented there get accessed from the Python code?