sequence_stride=64)temp = np.array(x_tensor)执行上面的代码会抛出以下错误indicate that you're trying to pass a Tensor to a NumPy call, which is not supported
正如您所看到的,函数外部的操作是完全可执行的,但在函数内部的符号张量上执行时会失败。我以前在不同的论坛上看到过这个问题
我在MacOS工作。因此,在Jupyter Notebook中,我尝试运行以下代码: import tensorflow as tf sess =' has no attribute 'Session' 我知道tensorflow 2.2.0中不支持tf.Session(),这是我在tfdeeplearning环境中运行行pip install然后我在jupyter