Benchmarking the Linear Algebra Awareness of TensorFlow and PyTorch