-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split layer in python #497
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: voropz <[email protected]>
Signed-off-by: voropz <[email protected]>
Signed-off-by: voropz <[email protected]>
@staticmethod | ||
def __sizes_to_array(sizes) -> numpy.ndarray: | ||
sizes = numpy.array(sizes, dtype=numpy.int32) | ||
if sizes.ndim != 1 or sizes.size > 3: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you have the upper limit of 3
here? It should be up to 31
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, it was in the original layer. But that's a mistake! It should be 31. (MathEngine can handle split/merge with up to 32 parts).
@@ -62,7 +62,7 @@ def check_input_layers(input_layers, layer_count): | |||
layers.append(i._internal) | |||
outputs.append(0) | |||
elif isinstance(i, (list, tuple)) and len(i) == 2 and isinstance(i[0], Layer) and isinstance(i[1], int): | |||
if int(i[1]) < 0 or int(i[1]) >= i[0].output_count(): | |||
if int(i[1]) < 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need this? Looks like a bug...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ты письмо читал?
Signed-off-by: voropz [email protected]