by Suf | Apr 7, 2022 | Programming, Python, TensorFlow, Tips
The simplest way to convert a TensorFlow Tensor to a Numpy array is to use the numpy() method. For example, numpy_array = tensor.numpy(). This tutorial will go through how to convert a TensorFlow Tensor to a NumPy array for both TensorFlow 2.x and 1.x with the help of...
by Suf | Jan 15, 2022 | Machine Learning, Programming, Python, TensorFlow, Tips
A common error you may encounter when using Python is modulenotfounderror: no module named ‘keras’. Keras comes packaged with Tensorflow 2.0 as tensorflow.keras. To import and start using Keras, you need to install TensorFlow 2. You can install TensorFlow...