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

model.fit(x_train_raw, y_train_raw, epochs=5) #1

Open
Dildar-ali opened this issue Nov 29, 2019 · 0 comments
Open

model.fit(x_train_raw, y_train_raw, epochs=5) #1

Dildar-ali opened this issue Nov 29, 2019 · 0 comments

Comments

@Dildar-ali
Copy link

when i i run this command
model.fit(x_train_raw, y_train_raw, epochs=5)

x_valid_raw = np.array(X_valid)
y_valid_raw = np.array(Y_valid)
test_loss, test_acc = model.evaluate(x_valid_raw, y_valid_raw)
test_loss
test_acc

so this problem occurs can anyone help me?

FailedPreconditionError Traceback (most recent call last)
in ()
1
----> 2 model.fit(x_train_raw, y_train_raw, epochs=5)
3
4 x_valid_raw = np.array(X_valid)
5 y_valid_raw = np.array(Y_valid)

4 frames
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py in call(self, *args, **kwargs)
1470 ret = tf_session.TF_SessionRunCallable(self._session._session,
1471 self._handle, args,
-> 1472 run_metadata_ptr)
1473 if run_metadata:
1474 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

FailedPreconditionError: Attempting to use uninitialized value training_4/Adam/Variable_1
[[{{node training_4/Adam/Variable_1/read}}]]

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