numpy broadcasting semantic


data copy 없이
### **In-place semantics**
broadcasting에 따라 in-place tensor의 모양이 변경되지 않는다
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F72309b61-e4f1-4d08-8fc0-3f50b44b0042%2FUntitled.png?table=block&id=e43379de-3b70-4a33-a85b-aa58e7de5036&cache=v2)
1차원은 broadcasting되는데 2차원부터 안되니까 1차원만 되는 이유
차원 없다면 뒤부터 둔다
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8a1d486d-e229-46ad-981d-c4c094f05088%2FUntitled.png?table=block&id=47c2b71b-8bc5-4684-9744-0e24448f0750&cache=v2)
즉 위 첫 케이스에서 3을 중간에 둘 수 없다


### **Backwards compatibility**



> [How does pytorch broadcasting work?](https://stackoverflow.com/questions/51371070/how-does-pytorch-broadcasting-work)

> [pytorch broadcasting](https://velog.io/@optjyy/pytorch-broad-casting)





