How to use tf.py_func in keras lambda layer to wrap python code. ValueError: The last dimension of the inputs to Dense should be defined. Found None

后端 未结 0 747
[愿得一人]
[愿得一人] 2020-12-13 09:04

I would like to wrap numpy codes using tf.py_fucn in a customized lambda layer using keras.

Notice: only for simplicity I\'m showing a simple np.power function.

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题