上传者: 38557838
|
上传时间: 2021-11-07 15:20:43
|
文件大小: 16KB
|
文件类型: -
1、关于tf数据集
需要加入tf.enable_eager_execution()
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import tensorflow_datasets as tfds
import numpy as np
import matplotlib.pyplot as plt
# tfds works in both Eager and Graph modes
tf.enable_eager_execution()
mnist_train = tfds.load(name=mni