Skip to content

Conversation

@julian-urban
Copy link

…arguments, and adds code to construct the correct padding from kernel_size automatically for padding_mode = 'circular'. Tests are passing.

  1. Some asserts were failing for certain valid arguments due to comparing tuples with ints or lists, now all variables are forced to be tuples once this point is reached.
  2. padding_mode = 'zeros' is not the same as padding = 0, this condition has been removed from the assert ensuring that padding != 0 only for padding_mode = 'circular'.
  3. For a given kernel_size and padding_mode = 'circular', the appropriate padding must be kernel_size-1. This was checked with an assert already, but now it can also be ensured autoamtically by passing padding = None together with padding_mode = 'circular'.

…arguments, and adds code to construct the correct padding from kernel_size automatically for padding_mode = 'circular'. Tests are passing.

1. Some asserts were failing for certain valid arguments due to comparing tuples with ints or lists, now all variables are forced to be tuples once this point is reached.
2. padding_mode = 'zeros' is not the same as padding = 0, this condition has been removed from the assert ensuring that padding != 0 only for padding_mode = 'circular'.
3. For a given kernel_size and padding_mode = 'circular', the appropriate padding must be kernel_size-1. This was checked with an assert already, but now it can also be ensured autoamtically by passing padding = None together with padding_mode = 'circular'.
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.

1 participant