Skip to content
New issue

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

Non trainable Parameter and Padding #1

Open
lima21bd opened this issue Oct 10, 2020 · 0 comments
Open

Non trainable Parameter and Padding #1

lima21bd opened this issue Oct 10, 2020 · 0 comments

Comments

@lima21bd
Copy link

Total params: 4,840,828
Trainable params: 647,428
Non-trainable params: 4,193,400

I am working on your dataset. Would you like to explain why Non-trainable params amount is so high?

def padding(Sentences):
maxlen = 101
for sentence in Sentences:
char = sentence[1]
for x in char:
maxlen = max(maxlen,len(str(x)))
for i,sentence in enumerate(Sentences):
Sentences[i][1] = pad_sequences(Sentences[i][1],101,padding='post')
return Sentences

Moreover, please explain this portion of the code with an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant