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

how to update from version1 to version2 in tensorflow #1144

Open
messi313 opened this issue Jan 10, 2020 · 0 comments
Open

how to update from version1 to version2 in tensorflow #1144

messi313 opened this issue Jan 10, 2020 · 0 comments

Comments

@messi313
Copy link

I have NN model in tesorflow1.14 but i want to update as per tensorflow2 but how can i do i am facing problem. I read tensorflow website but not useful or get idea for my code.

    # Build neural network

net = tflearn.input_data(shape=[None, len(train_x[0])])
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, len(train_y[0]), activation='softmax')
net = tflearn.regression(net)

Define model and setup tensorboard

model = tflearn.DNN(net, tensorboard_dir='tflearn_logs')

Start training (apply gradient descent algorithm)

model.fit(train_x, train_y, n_epoch=100, batch_size=8, show_metric=True)
model.save('my_drive/AI_values/model/model.ckpt')

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