-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated generator classes and tests for keras3
- Loading branch information
Showing
7 changed files
with
355 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
from .Generator import Generator | ||
from .ResGenerator import ResGenerator | ||
import keras as k | ||
|
||
k_vrs = k.__version__.split(".")[:2] | ||
k_vrs = float(".".join([n for n in k_vrs])) | ||
|
||
if k_vrs >= 3.0: | ||
from .k3.Generator import Generator | ||
from .k3.ResGenerator import ResGenerator | ||
else: | ||
from .k2.Generator import Generator | ||
from .k2.ResGenerator import ResGenerator |
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
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
Empty file.
Oops, something went wrong.