Learning Across Tasks and Domains