From 9f9766ac17e8f0ecfc234dcc9970a1b5fb3fde3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E8=8E=89?= <2020857336@qq.com> Date: Thu, 9 Nov 2023 11:58:02 +0000 Subject: [PATCH] =?UTF-8?q?update=20TensorFlow/built-in/recommendation/Wid?= =?UTF-8?q?eDeep=5FID2940=5Ffor=5FTensorFlow/trainer/task.py.=20=E8=BD=ACV?= =?UTF-8?q?2=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> --- .../WideDeep_ID2940_for_TensorFlow/trainer/task.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TensorFlow/built-in/recommendation/WideDeep_ID2940_for_TensorFlow/trainer/task.py b/TensorFlow/built-in/recommendation/WideDeep_ID2940_for_TensorFlow/trainer/task.py index dc8bc7bbc..cabfd224e 100644 --- a/TensorFlow/built-in/recommendation/WideDeep_ID2940_for_TensorFlow/trainer/task.py +++ b/TensorFlow/built-in/recommendation/WideDeep_ID2940_for_TensorFlow/trainer/task.py @@ -24,6 +24,8 @@ import json import numpy as np import os import tensorflow as tf +tf.enable_control_flow_v2() +tf.enable_resource_variables() import tensorflow_transform as tft from tensorflow.core.protobuf import rewriter_config_pb2 from trainer import features -- Gitee