Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Substitute tensforflow import with tensorflow.compat.v1 #1872

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update metrics.py
  • Loading branch information
aleksas authored Dec 6, 2020
commit 4179a5b30ada2847f21507ea76c93e897dd32cb7
4 changes: 2 additions & 2 deletions tensor2tensor/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
from tensor2tensor.utils import bleu_hook
from tensor2tensor.utils import rouge

import tensorflow as tf
import tensorflow.compat.v1 as tf

from tensorflow.contrib.eager.python import tfe
from tf.eager.python import tfe


class Metrics(object):
Expand Down