CUDA_ERROR_OUT_OF_MEMORY in tensorflow

When I started to train some neural network, it met the CUDA_ERROR_OUT_OF_MEMORY but the training could go on without error. Because I wanted to use gpu memory as it really needs, so I set the gpu_options.allow_growth = True.The logs are as follows: And after using nvidia-smi command, it gets: After I commented the gpu_options.allow_growth = … Read more

Learning Haskell: How to remove an item from a List in Haskell

The others are right that the problem is the : operator. I would say that your areTheySame function that returns a list is the wrong approach anyway, though. Rather than switch to the ++ operator, a better implementation of that function would be: As you can see, this is a pretty simple implementation. Also, consing … Read more