Ports logdet from method_tests() to op_db (#55743)
Summary:
Per title. Also updates some tensor construction helpers.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55743
Reviewed By: ngimel
Differential Revision: D27702060
Pulled By: mruberry
fbshipit-source-id: f64b7bee855733ad1f4fd182819ceec5831d9878