Skip to content

Conversation

@XingweiDeng
Copy link

No description provided.

@paddle-bot
Copy link

paddle-bot bot commented Dec 2, 2025

Thanks for your contribution!

super().__init__(*args, **kwargs)
self.topk = topk
self.device = kwargs.get("device", None)
if is_bfloat16_available(self.device):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无需这段逻辑,后续没有用到self.dtype

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

from .modeling import PPLCNet

if (
self.model_name == "PP-LCNet_x1_0_doc_ori"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议改成 self.model_name in xxx

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants