Enable dreambooth lora finetune example on other devices (#10602)
* enable dreambooth_lora on other devices
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
* enable xpu
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
* check cuda device before empty cache
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
* fix comment
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
* import free_memory
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
---------
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>