make print function print detailed information on torch class instances.