HashTest.Scalar from test_lazy is broken
Labels: triaged, module: lazy

### 🐛 Describe the bug

HashTest.Scalar from test_lazy is broken.

Here are lines in question:

https://github.com/pytorch/pytorch/blob/09b189edc36235ad96816904adb2c230351b9ac8/test/cpp/lazy/test_misc.cpp#L23-L37

Line 30 modifies `b.tag`, not anything in the data union.

On little endian systems before this assignment tag has value `0x00000001`, or `c10::Scalar::Tag::HAS_i`, and after assignment it keeps old value. Nothing changed and test actually tests nothing it intended to.

It's worse on big endian systems. Before assignment tag also has value `0x00000001`, or `c10::Scalar::Tag::HAS_i`. But after assignment it becomes `0x01000001`, an invalid value. And when accessing data, an exception about this is thrown:

```
unknown file: Failure
C++ exception with description "Expected false to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)
Exception raised from toLong at /home/user/pytorch/c10/core/Scalar.h:99 (most recent call first):
frame #0: <unknown function> + 0xbbf42 (0x3ffea5bbf42 in /home/user/pytorch/build/lib/libc10.so)
...
```

This test is better to be reworked or to be deleted.

### Versions

pytorch current main branch

Collecting environment information...                                                                                                                                                                       
PyTorch version: 2.1.0a0+gitab0a821                                                                                                                                                                         
Is debug build: True                                                                                                                                                                                        
CUDA used to build PyTorch: None                                                                                                                                                                            
ROCM used to build PyTorch: N/A                                                                                                                                                                             
                                                                                                                                                                                                            
OS: Gentoo Linux (s390x)                                                                                                                                                                                    
GCC version: (Gentoo 11.3.1_p20230303 p8) 11.3.1 20230303                                                                                                                                                   
Clang version: Could not collect                                                                                                                                                                            
CMake version: version 3.26.0                                                                                                                                                                               
Libc version: glibc-2.37                                                                                                                                                                                    
                                                                                                                                                                                                            
Python version: 3.10.10 (main, Mar 21 2023, 10:36:56) [GCC 11.3.1 20230120] (64-bit runtime)                                                                                                                
Python platform: Linux-5.16.5-200.fc35.s390x-s390x-8561-with-glibc2.37                                                                                                                                      
Is CUDA available: False                                                                                                                                                                                    
CUDA runtime version: No CUDA                                                                                                                                                                               
CUDA_MODULE_LOADING set to: N/A                                                                                                                                                                             
GPU models and configuration: No CUDA                                                                                                                                                                       
Nvidia driver version: No CUDA                                                                                                                                                                              
cuDNN version: No CUDA                                                                                                                                                                                      
HIP runtime version: N/A                                                                                                                                                                                    
MIOpen runtime version: N/A
Is XNNPACK available: False

CPU:
Architecture:                    s390x
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Big Endian
CPU(s):                          8
On-line CPU(s) list:             0-7
Vendor ID:                       IBM/S390
Model name:                      -
Machine type:                    8561
Thread(s) per core:              1
Core(s) per socket:              1
Socket(s) per book:              1
Book(s) per drawer:              1
Drawer(s):                       8
CPU dynamic MHz:                 5200
CPU static MHz:                  5200
BogoMIPS:                        24038.00
Dispatching mode:                horizontal
Flags:                           esan3 zarch stfle msa ldisp eimm dfp edat etf3eh highgprs te vx vxd vxe gs vxe2 vxp sort dflt sie
Hypervisor:                      z/VM 7.3.0
Hypervisor vendor:               IBM
Virtualization type:             full
L1d cache:                       1 MiB (8 instances)
L1i cache:                       1 MiB (8 instances)
L2d cache:                       32 MiB (8 instances)
L2i cache:                       32 MiB (8 instances)
L3 cache:                        256 MiB
L4 cache:                        960 MiB
NUMA node(s):                    1
NUMA node0 CPU(s):               0-7
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; etokens
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected

Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.24.2
[conda] Could not collect