Skip to content

Conversation

@cyrjano
Copy link
Contributor

@cyrjano cyrjano commented Nov 13, 2025

Summary: This diff adds a new method to the captum.attr._core.feature_ablation module to check if the output shape of the forward function scales correctly with the input batch size when perturbations are applied. The method takes in the inputs, the number of examples, the initial evaluation, the modified evaluation, and the number of perturbations per evaluation as arguments. It then validates that the output shape of the forward function scales correctly with the input batch size.

Differential Revision: D86976520

@meta-cla meta-cla bot added the cla signed label Nov 13, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 13, 2025

@cyrjano has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86976520.

cyrjano added a commit to cyrjano/captum that referenced this pull request Nov 13, 2025
…val. (meta-pytorch#1666)

Summary:

This diff adds a new method to the `captum.attr._core.feature_ablation` module to check if the output shape of the forward function scales correctly with the input batch size when perturbations are applied. The method takes in the inputs, the number of examples, the initial evaluation, the modified evaluation, and the number of perturbations per evaluation as arguments. It then validates that the output shape of the forward function scales correctly with the input batch size.

Differential Revision: D86976520
cyrjano added a commit to cyrjano/captum that referenced this pull request Nov 13, 2025
…val. (meta-pytorch#1666)

Summary:

This diff adds a new method to the `captum.attr._core.feature_ablation` module to check if the output shape of the forward function scales correctly with the input batch size when perturbations are applied. The method takes in the inputs, the number of examples, the initial evaluation, the modified evaluation, and the number of perturbations per evaluation as arguments. It then validates that the output shape of the forward function scales correctly with the input batch size.

Differential Revision: D86976520
cyrjano added a commit to cyrjano/captum that referenced this pull request Nov 14, 2025
…val. (meta-pytorch#1666)

Summary:

This diff adds a new method to the `captum.attr._core.feature_ablation` module to check if the output shape of the forward function scales correctly with the input batch size when perturbations are applied. The method takes in the inputs, the number of examples, the initial evaluation, the modified evaluation, and the number of perturbations per evaluation as arguments. It then validates that the output shape of the forward function scales correctly with the input batch size.

Differential Revision: D86976520
@cyrjano cyrjano force-pushed the export-D86976520 branch 2 times, most recently from 3804e56 to 489d6b8 Compare November 14, 2025 15:32
cyrjano added a commit to cyrjano/captum that referenced this pull request Nov 14, 2025
…val. (meta-pytorch#1666)

Summary:

This diff adds a new method to the `captum.attr._core.feature_ablation` module to check if the output shape of the forward function scales correctly with the input batch size when perturbations are applied. The method takes in the inputs, the number of examples, the initial evaluation, the modified evaluation, and the number of perturbations per evaluation as arguments. It then validates that the output shape of the forward function scales correctly with the input batch size.

Differential Revision: D86976520
…val. (meta-pytorch#1666)

Summary:

This diff adds a new method to the `captum.attr._core.feature_ablation` module to check if the output shape of the forward function scales correctly with the input batch size when perturbations are applied. The method takes in the inputs, the number of examples, the initial evaluation, the modified evaluation, and the number of perturbations per evaluation as arguments. It then validates that the output shape of the forward function scales correctly with the input batch size.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant