-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
josegcpa
committed
Aug 31, 2023
1 parent
b585ec3
commit 0c7d590
Showing
6 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
""" | ||
Functions for 2d NLM using torch. | ||
""" | ||
|
||
__author__ = "José Guilherme de Almeida" | ||
__license__ = "MIT" | ||
__version__ = "0.1.0" | ||
__maintainer__ = "José Guilherme de Almeida" | ||
__email__ = "[email protected]" | ||
|
||
import torch | ||
import einops | ||
import torch.nn.functional as F | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
""" | ||
Functions for 3d NLM using torch. | ||
""" | ||
|
||
__author__ = "José Guilherme de Almeida" | ||
__license__ = "MIT" | ||
__version__ = "0.1.0" | ||
__maintainer__ = "José Guilherme de Almeida" | ||
__email__ = "[email protected]" | ||
|
||
import torch | ||
import einops | ||
import torch.nn.functional as F | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
""" | ||
Generic operations for torch_nlm. | ||
""" | ||
|
||
__author__ = "José Guilherme de Almeida" | ||
__license__ = "MIT" | ||
__version__ = "0.1.0" | ||
__maintainer__ = "José Guilherme de Almeida" | ||
__email__ = "[email protected]" | ||
|
||
import numpy as np | ||
import torch | ||
import torch.nn.functional as F | ||
import einops | ||
from itertools import product | ||
from tqdm import tqdm | ||
from typing import Tuple,List | ||
|