Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions madnis/integrator/integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ def sample(
batch_size: int = 100000,
channel_weight_mode: Literal["uniform", "mean", "variance"] = "variance",
channel: int | None = None,
evaluate_integrand: bool = True,
) -> SampleBatch:
"""
Draws samples and computes their integration weight
Expand Down Expand Up @@ -1140,6 +1141,7 @@ def sample(
False,
channel_weight_mode,
channel,
evaluate_integrand=evaluate_integrand,
)
if self.multichannel:
with torch.no_grad():
Expand Down