We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, Keras code uses Lambda functions for encoding the characters, which breaks two things:
The code to replace:
def binarize(x, sz=97): import tensorflow as tf2 return tf2.to_float(tf2.one_hot(x, sz, on_value=1, off_value=0, axis=-1))
def binarize_outshape(in_shape, sz=97): return in_shape[0], in_shape[1], sz ... embedded = Lambda(binarize, output_shape=binarize_outshape)(line_of_code_input)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, Keras code uses Lambda functions for encoding the characters, which breaks two things:
The code to replace:
def binarize(x, sz=97):
import tensorflow as tf2
return tf2.to_float(tf2.one_hot(x, sz, on_value=1, off_value=0, axis=-1))
def binarize_outshape(in_shape, sz=97):
return in_shape[0], in_shape[1], sz
...
embedded = Lambda(binarize, output_shape=binarize_outshape)(line_of_code_input)
The text was updated successfully, but these errors were encountered: