Skip to content

Commit

Permalink
bump version [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatcharasupat committed Jan 2, 2022
1 parent e2fb8f4 commit 8e4306f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = latte-metrics
version = 0.0.1-alpha4
version = 0.0.1-alpha5
description = Latte: Cross-framework Python Package for Evaluation of Latent-based Generative Models
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
4 changes: 2 additions & 2 deletions src/latte/metrics/keras/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from ...metrics.base import LatteMetric


def tf_to_numpy(args, kwargs):
args = [a.numpy() for a in args]
kwargs = {k: kwargs[k].numpy() for k in kwargs}
Expand Down Expand Up @@ -50,10 +49,11 @@ def update_state(self, *args, **kwargs):
args, kwargs = tf_to_numpy(args, kwargs)
self.metric.update_state(*args, **kwargs)

@tf.autograph.experimental.do_not_convert
def result(self):
return numpy_to_tf(self.metric.compute())

def reset_state(self):
def reset_stated(self):
return self.metric.reset_state()

def __getattr__(self, name: str):
Expand Down

0 comments on commit 8e4306f

Please sign in to comment.