From 42ad1665d4ef48d429a38babf88b030434b45031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E8=8E=89?= <2020857336@qq.com> Date: Tue, 31 Oct 2023 07:27:33 +0000 Subject: [PATCH] =?UTF-8?q?update=20TensorFlow/built-in/nlp/FastText=5FID0?= =?UTF-8?q?135=5Ffor=5FTensorFlow/word=5Fembeddings=5Frt.py.=20=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E8=84=9A=E6=9C=AC=E8=BD=ACV2=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 石莉 <2020857336@qq.com> --- .../nlp/FastText_ID0135_for_TensorFlow/word_embeddings_rt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TensorFlow/built-in/nlp/FastText_ID0135_for_TensorFlow/word_embeddings_rt.py b/TensorFlow/built-in/nlp/FastText_ID0135_for_TensorFlow/word_embeddings_rt.py index bbb0a8dfa..27030f7c3 100644 --- a/TensorFlow/built-in/nlp/FastText_ID0135_for_TensorFlow/word_embeddings_rt.py +++ b/TensorFlow/built-in/nlp/FastText_ID0135_for_TensorFlow/word_embeddings_rt.py @@ -33,6 +33,8 @@ import fasttext import numpy as np import pandas as pd import tensorflow as tf +tf.enable_control_flow_v2() +tf.enable_resource_variables() import tensorflow_hub as hub import keras.layers as layers from keras.models import Model -- Gitee