Fixed scope of Tensor::all()