Skip to content

Commit

Permalink
Move __version__ variable definition to the top of the __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
keisen committed Aug 14, 2021
1 parent b4c9546 commit 0188103
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tf_keras_vis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
try:
from importlib.metadata import version
except ImportError: # pragma: no cover
from importlib_metadata import version

__version__ = version("tf-keras-vis")

from abc import ABC, abstractmethod
from typing import Union

Expand All @@ -6,13 +13,6 @@

from .utils import listify

try:
from importlib.metadata import version
except ImportError: # pragma: no cover
from importlib_metadata import version

__version__ = version("tf-keras-vis")


class ModelVisualization(ABC):
"""Visualization class that analyze the model for debugging.
Expand Down

0 comments on commit 0188103

Please sign in to comment.