Keras.NET
Keras.NET copied to clipboard
Using the Lambda layer with lambda expressions
Not sure if this is really an issue of the library or rather a problem with the Python runtime API.
I have a Lambda-layer in my original python code to normalize pixel values from 0-255 to 0.0-1.0
l = Lambda(lambda x: x / 255)
and I want to have exactly the same layer now with Keras.Net.
l = new Lambda("lambda x: x / 255")
This code throws an exception at runtime. Python.Runtime.PythonException: 'TypeError : unsupported callable' Is there a simple way to achieve the same like the python version?