add support for constant (#60166)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/58739 Add support for constants according to python array API stipulation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60166
Reviewed By: anjali411
Differential Revision: D29253958
Pulled By: mruberry
fbshipit-source-id: 0bc86b74d3a4eb3ec4a65c941ec2710747402db1