Closed weiyang001 closed 2 years ago
self.device定义在了BaseModel类中,BaseModel类是AdaAttModel的父类。 (self.device is defined in class BaseModel.)
self.device定义在了BaseModel类中,BaseModel类是AdaAttModel的父类。 (self.device is defined in class BaseModel.)
Thanks for the explanation! As for the local feature loss, it indeed requires a lot of memory. But you can set a smaller self.max_sample in the init function to reduce the memory usage.
Thanks for your answer!
Hi , thanks for your code. I have two questions about it.
I don't understand what
self.device
means here, it doesn't seem to be defined.In addition, I would like to ask whether local feature loss is taking up too much memory.Because I ran out of memory when I tried to import this module into other code.
Thanks!