GiPH: Generalizable Placement Learning for Adaptive Heterogeneous Computing