Repository: pytorch
Issue: `torch.set_printoptions` overwrites settings of its own previous calls
Labels: module: printing,triaged,module: ux

### 🐛 Describe the bug

It looks like `torch.set_printoptions` can only be called once with all the desired options. If it's called multiple times the previous settings are lost as can be seen from the 2 second example - where `sci_mode=False` is ignored. 

```
$ python -c "import torch; torch.set_printoptions(sci_mode=False, threshold=100000000); x=torch.rand(6,6)*0.001; print(x)" 
tensor([[   0.0006,    0.0004,    0.0002,    0.0005,    0.0008,    0.0001], 
       [   0.0004,    0.0009,    0.0007,    0.0010,    0.0003,    0.0009], 
       [   0.0009,    0.0004,    0.0002,    0.0001,    0.0004,    0.0009], 
       [   0.0007,    0.0006,    0.0010,    0.0005,    0.0005,    0.0002], 
       [   0.0002,    0.0006,    0.0001,    0.0000,    0.0010,    0.0008], 
       [   0.0003,    0.0003,    0.0000,    0.0009,    0.0001,    0.0002]]) 

$ python -c "import torch; torch.set_printoptions(sci_mode=False); torch.set_printoptions(threshold=100000000); x=torch.rand(6,6)*0.001; print(x)" 
tensor([[8.4229e-04, 4.0011e-05, 3.7951e-04, 8.8693e-04, 3.0967e-04, 2.5530e-04], 
       [7.1079e-04, 1.5624e-04, 2.2670e-04, 1.0680e-04, 3.1399e-04, 9.5042e-04], 
       [1.8354e-04, 4.8807e-04, 5.5652e-04, 7.9008e-04, 9.5217e-04, 2.1770e-04], 
       [2.1679e-04, 4.9141e-04, 1.6390e-04, 6.4065e-04, 9.7740e-04, 8.4378e-04], 
       [2.2300e-04, 1.2727e-04, 8.3875e-04, 1.1710e-04, 5.0114e-04, 9.9107e-04], 
       [1.9158e-04, 1.9440e-04, 4.6836e-04, 7.2168e-04, 7.4901e-04, 8.8656e-04]])
```


### Versions

PyTorch version: 1.11.0+cu115
Is debug build: False
CUDA used to build PyTorch: 11.5
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.4 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
Clang version: 10.0.0-4ubuntu1 
CMake version: version 3.21.3
Libc version: glibc-2.31

Python version: 3.8.12 (default, Oct 12 2021, 13:49:34)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.0-100-generic-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: 11.5.119
GPU models and configuration: 
GPU 0: NVIDIA GeForce GTX 1070 Ti
GPU 1: NVIDIA GeForce RTX 3090

Nvidia driver version: 495.29.05
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.3.2
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.3.2
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.3.2
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.3.2
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.3.2
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.3.2
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.3.2
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] functorch==0.0.1a0+2228c3b
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.20.3
[pip3] torch==1.11.0+cu115
[pip3] torch-scatter==2.0.9
[pip3] torchaudio==0.11.0+cu115
[pip3] torchvision==0.12.0+cu115
[conda] blas                      1.0                         mkl
[conda] cudatoolkit               11.3.1               h2bc3f7f_2
[conda] functorch                 0.0.1a0+2228c3b           dev_0    <develop>
[conda] mkl                       2021.4.0           h06a4308_640
[conda] mkl-service               2.4.0            py38h7f8727e_0
[conda] mkl_fft                   1.3.1            py38hd3c417c_0
[conda] mkl_random                1.2.2            py38h51133e4_0
[conda] mypy-extensions           0.4.3                    pypi_0    pypi
[conda] numpy                     1.20.3                   pypi_0    pypi
[conda] pytorch-mutex             1.0                        cuda    pytorch-nightly
[conda] torch                     1.11.0+cu115             pypi_0    pypi
[conda] torch-scatter             2.0.9                    pypi_0    pypi
[conda] torchaudio                0.11.0+cu115             pypi_0    pypi
[conda] torchvision               0.12.0+cu115             pypi_0    pypi