Skip to content

Calibrate clamp.Tensor #32

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

Open
wants to merge 1 commit into
base: gh/manuelcandales/14/base
Choose a base branch
from
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
8 changes: 8 additions & 0 deletions facto/specdb/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,14 @@
deps=[0, 1],
constraints=[
cp.Optional.Eq(lambda deps: False if deps[1] is None else True),
cp.Dtype.Ne(
lambda deps: (
torch.bool
if deps[0].dtype == torch.bool
and (deps[1] is None or deps[1].dtype == torch.bool)
else None
)
),
cp.Size.In(
lambda deps, r, d: fn.broadcast_with(
(
Expand Down