Hi,
I am trying to use orthogonal initialization, I have tried many ways but I keep getting an error, the code and stack trace is below.
Code:
torch.nn.init.orthogonal(m.weight) or   torch.nn.init.orthogonal(m.weight.data)
Traceback (most recent call last):
File “/home/saby2k13/projects/ctb-ilie/saby2k13/pyDPPI/python/optimise.py”, line 620, in 
main()
File “/home/saby2k13/projects/ctb-ilie/saby2k13/pyDPPI/python/optimise.py”, line 465, in main
torch.nn.init.orthogonal(m.weight)
File “/project/6000341/saby2k13/DPPI2/venv/tensorflow/lib/python3.5/site-packages/torch/nn/init.py”, line 445, in deprecated_init
return meth(*args, **kwargs)
File “/project/6000341/saby2k13/DPPI2/venv/tensorflow/lib/python3.5/site-packages/torch/nn/init.py”, line 381, in orthogonal_
raise ValueError(“Only tensors with 2 or more dimensions are supported”)
ValueError: Only tensors with 2 or more dimensions are supported