Skip to content
Merged
Show file tree
Hide file tree
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
Binary file added benchmark/torchscripts/BetaCoOccurringFD.pt
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def attenuate(beta: float, k: torch.Tensor, l: int) -> torch.Tensor:


@torch.jit.script
def FDAMM(A: torch.Tensor, B: torch.Tensor, l: int, beta: float):
def FDAMM(A: torch.Tensor, B: torch.Tensor, l: int):
B = B.t()

beta=28.0
assert A.shape[1] == B.shape[1]
mx, n = A.shape
my, n = B.shape
Expand Down Expand Up @@ -91,7 +91,7 @@ def main():

t = time.time()

aResult = FDAMM(A, B, 500, 28.0)
aResult = FDAMM(A, B, 500)
print("approximate: " + str(time.time() - t) + "s")

print(aResult)
Expand All @@ -105,7 +105,7 @@ def main():

print("\nerror: " + str(torch.norm(aResult - eResult, p='fro').item()))

FDAMM_script = FDAMM.save("beta-Co-Occurring FD.pt")
FDAMM_script = FDAMM.save("BetaCoOccurringFD.pt")

if __name__ == '__main__':
main()
Expand Down
Binary file modified benchmark/torchscripts/CoOccurringFD.pt
Binary file not shown.
2 changes: 1 addition & 1 deletion benchmark/torchscripts/CoOccurringFD.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def main():

print("\nerror: " + str(torch.norm(aResult - eResult, p='fro').item()))

FDAMM_script = FDAMM.save("Co-Occurring FD.pt")
FDAMM_script = FDAMM.save("CoOccurringFD.pt")

if __name__ == '__main__':
main()
Expand Down
Binary file removed benchmark/torchscripts/beta-CoOccurringFD.pt
Binary file not shown.
2 changes: 1 addition & 1 deletion commit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BRANCH=main
BRANCH=hump
git init
git checkout -b $BRANCH
git add .
Expand Down