From 86ce38bd65de4cbd77901a11285c151236a79445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E8=8E=89?= <2020857336@qq.com> Date: Fri, 10 Nov 2023 06:40:55 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20TensorFlow/built-in/recommendation?= =?UTF-8?q?/DeepCTR=5FSeries=5Ffor=5FTensorFlow/examples/run=5Fdcnmix.py.?= =?UTF-8?q?=20=E8=BD=ACV2=E6=8E=A7=E5=88=B6=E7=AE=97=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 石莉 <2020857336@qq.com> --- .../DeepCTR_Series_for_TensorFlow/examples/run_dcnmix.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TensorFlow/built-in/recommendation/DeepCTR_Series_for_TensorFlow/examples/run_dcnmix.py b/TensorFlow/built-in/recommendation/DeepCTR_Series_for_TensorFlow/examples/run_dcnmix.py index 4f5831e4a..1afa30bb3 100644 --- a/TensorFlow/built-in/recommendation/DeepCTR_Series_for_TensorFlow/examples/run_dcnmix.py +++ b/TensorFlow/built-in/recommendation/DeepCTR_Series_for_TensorFlow/examples/run_dcnmix.py @@ -29,6 +29,8 @@ # import tensorflow as tf +tf.enable_control_flow_v2() +tf.enable_resource_variables() from tensorflow.python.ops.parsing_ops import FixedLenFeature from deepctr.estimator import DCNMixEstimator -- Gitee From cd0dc71ed58f5b7fb9d835c84b41f479acba10fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E8=8E=89?= <2020857336@qq.com> Date: Fri, 10 Nov 2023 06:44:01 +0000 Subject: [PATCH 2/2] =?UTF-8?q?update=20TensorFlow/built-in/nlp/DS-CNN=5FR?= =?UTF-8?q?T2=5FID1769=5Ffor=5FTensorFlow/train.py.=20=E8=BD=ACv2=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E7=AE=97=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 石莉 <2020857336@qq.com> --- .../built-in/nlp/DS-CNN_RT2_ID1769_for_TensorFlow/train.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TensorFlow/built-in/nlp/DS-CNN_RT2_ID1769_for_TensorFlow/train.py b/TensorFlow/built-in/nlp/DS-CNN_RT2_ID1769_for_TensorFlow/train.py index 112252bb7..6ae30ed93 100644 --- a/TensorFlow/built-in/nlp/DS-CNN_RT2_ID1769_for_TensorFlow/train.py +++ b/TensorFlow/built-in/nlp/DS-CNN_RT2_ID1769_for_TensorFlow/train.py @@ -100,6 +100,8 @@ import sys import numpy as np from six.moves import xrange # pylint: disable=redefined-builtin import tensorflow as tf +tf.enable_control_flow_v2() +tf.enable_resource_variables() import input_data import models -- Gitee