{"action":"closed","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/5889","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/5889/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/5889/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/5889/events","html_url":"https://github.com/fchollet/keras/issues/5889","id":215466992,"number":5889,"title":"TypeError: <lambda>() missing 1 required positional argument: 'name'","user":{"login":"yanadsl","id":11227261,"avatar_url":"https://avatars2.githubusercontent.com/u/11227261?v=3","gravatar_id":"","url":"https://api.github.com/users/yanadsl","html_url":"https://github.com/yanadsl","followers_url":"https://api.github.com/users/yanadsl/followers","following_url":"https://api.github.com/users/yanadsl/following{/other_user}","gists_url":"https://api.github.com/users/yanadsl/gists{/gist_id}","starred_url":"https://api.github.com/users/yanadsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanadsl/subscriptions","organizations_url":"https://api.github.com/users/yanadsl/orgs","repos_url":"https://api.github.com/users/yanadsl/repos","events_url":"https://api.github.com/users/yanadsl/events{/privacy}","received_events_url":"https://api.github.com/users/yanadsl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-20T15:57:16Z","updated_at":"2017-03-21T17:16:36Z","closed_at":"2017-03-21T17:16:35Z","body":"Hi, I'm trying to reproduce [DDPG-Keras-Torcs](https://github.com/yanpanlau/DDPG-Keras-Torcs), and here is my system\r\n- OS: Ubuntu16.04\r\n- Backend: TensorFlow\r\n- Python3.5\r\n- CUDA8.0 & cuDNN 5.1\r\n- GTX1070\r\n\r\nI made some [syntax change](https://github.com/yanadsl/DDPG-Keras-Torcs) to match new version of keras and python3\r\nHere is my error log\r\n```\r\nI tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally\r\nI tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally\r\nI tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally\r\nI tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally\r\nI tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally\r\nUsing TensorFlow backend.\r\nW tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.\r\nW tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.\r\nW tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.\r\nW tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.\r\nW tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.\r\nW tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.\r\nI tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:910] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\nI tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 0 with properties: \r\nname: GeForce GTX 1070\r\nmajor: 6 minor: 1 memoryClockRate (GHz) 1.7845\r\npciBusID 0000:01:00.0\r\nTotal memory: 7.92GiB\r\nFree memory: 7.69GiB\r\nI tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0 \r\nI tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0:   Y \r\nI tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0)\r\nNow we build the model\r\n/usr/local/lib/python3.5/dist-packages/keras/legacy/interfaces.py:86: UserWarning: Update your `Dense` call to the Keras 2 API: `Dense(1, kernel_initializer=<function ..., activation=\"tanh\")`\r\n  '` call to the Keras 2 API: ' + signature)\r\nTraceback (most recent call last):\r\n  File \"ddpg.py\", line 155, in <module>\r\n    playGame()\r\n  File \"ddpg.py\", line 45, in playGame\r\n    actor = ActorNetwork(sess, state_dim, action_dim, BATCH_SIZE, TAU, LRA)\r\n  File \"/home/yanadsl/DDPG-Keras-Torcs/ActorNetwork.py\", line 22, in __init__\r\n    self.model , self.weights, self.state = self.create_actor_network(state_size, action_size)   \r\n  File \"/home/yanadsl/DDPG-Keras-Torcs/ActorNetwork.py\", line 48, in create_actor_network\r\n    Steering = Dense(1,activation='tanh',init=lambda shape, name: normal(shape, scale=1e-4, name=name))(h1)  \r\n  File \"/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py\", line 528, in __call__\r\n    self.build(input_shapes[0])\r\n  File \"/usr/local/lib/python3.5/dist-packages/keras/layers/core.py\", line 827, in build\r\n    constraint=self.kernel_constraint)\r\n  File \"/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py\", line 364, in add_weight\r\n    weight = K.variable(initializer(shape), dtype=K.floatx(), name=name)\r\nTypeError: <lambda>() missing 1 required positional argument: 'name'\r\n```\r\n\r\nI find it strange that  `argument: 'name'` should be already passed in `core.py`\r\nI have tried to reinstall both TensorFlow and Keras but nothing help.\r\nAnd there are another error but shows randomly(after the log above)\r\n```\r\nException ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x7fab633d0cf8>>\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 582, in __del__\r\nAttributeError: 'NoneType' object has no attribute 'TF_DeleteStatus'\r\n```\r\nPerhaps there are nothing to deal with keras?\r\nThanks for any help!"}}
{"actor":{"display_login":"yanadsl"}}