Skip to content

Conversation

claircui
Copy link

@claircui claircui commented Oct 6, 2022

push latest to pypi with version # 1.4.2

@claircui claircui requested a review from WilliamG-LORA October 6, 2022 04:03
Comment on lines 33 to +38
batch_size = 400

def __init__(self, address: str = "guardian", port: str = "50065"):
def __init__(self,
address: str = "guardian",
port: str = "50065",
batch_size: int = None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not put batch_size: int = 400 instead of None? Then you don't need the if statement below

Comment on lines +46 to +47
if batch_size is not None:
self.batch_size = batch_size
Copy link
Contributor

@WilliamG-LORA WilliamG-LORA Oct 11, 2022

Choose a reason for hiding this comment

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

This is not needed if you set the default to 400 in the init

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