Removed logging from tensor and simplified imports.