Skip to content

Remove vectorize + write frontend-agnostic runtime checks#861

Merged
MuawizChaudhary merged 4 commits into
kymatio:devfrom
lostanlen:fix-843-bis
Jun 9, 2022
Merged

Remove vectorize + write frontend-agnostic runtime checks#861
MuawizChaudhary merged 4 commits into
kymatio:devfrom
lostanlen:fix-843-bis

Conversation

@lostanlen
Copy link
Copy Markdown
Collaborator

@lostanlen lostanlen commented Jun 9, 2022

Fix #843
(a second attempt after some productive discussions during review of #844)

This is a planned change for v0.3

The default behavior is still out_type="array" (vectorize=True)
We introduce out_type="dict" to replicate the behavior of out_type="array", vectorize=False

A net reduction in code size thanks to utility methods _check_runtime_args() and _check_input() in ScatteringBase1D

Written on top of #860. I suggest we look at #860 first
Tests pass locally

Note that vectorize is still documented in the base frontend. I'll take care of updating these docs after code review.

Copy link
Copy Markdown
Collaborator

@MuawizChaudhary MuawizChaudhary left a comment

Choose a reason for hiding this comment

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

Pro merging once the Jenkins finishes building

@MuawizChaudhary
Copy link
Copy Markdown
Collaborator

hmmmm seems like the Jenkins aborted

@lostanlen
Copy link
Copy Markdown
Collaborator Author

but Jenkins passed on #862, which contains this PR ?!

@MuawizChaudhary
Copy link
Copy Markdown
Collaborator

Tests pass on my end, dunno whats up with Jenkins here.

@MuawizChaudhary MuawizChaudhary merged commit 4a6d9ea into kymatio:dev Jun 9, 2022
@lostanlen lostanlen deleted the fix-843-bis branch June 25, 2022 16:24
eickenberg pushed a commit that referenced this pull request Jul 5, 2022
* avoid passing log2_T, pad, unpad to 1D core

* remove vectorize from Scattering1D

use out_array='dict' instead !

* finish removing vectorize

Co-authored-by: Muawiz Sajjad Chaudhary <39755015+MuawizChaudhary@users.noreply.github.com>
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