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

Lab 06-1 Softmax Classification Eager예제에서 compile오류 #24

Open
globalq64 opened this issue Nov 26, 2019 · 1 comment
Open

Comments

@globalq64
Copy link

globalq64 commented Nov 26, 2019

[Lab 06-1 Softmax Classification Eager]의 마지막 예제
[# Convert as Class]

Tensorflow 2.0으로 코드수정하여 실행하고 있습니다.
앞부분은 문제없이 실행됩니다만, 마지막 Class예제 실행과정에서 다음오류 발생했습니다.

RuntimeError: You must compile your model before training/testing. Use model.compile(optimizer, loss).

의견 부탁드립니다. 감사합니다.

@globalq64 globalq64 changed the title Good Morning Lab 06-1 Softmax Classification EagerGood Morning Nov 26, 2019
@globalq64 globalq64 changed the title Lab 06-1 Softmax Classification EagerGood Morning Lab 06-1 Softmax Classification Eager예제에서 compile오류 Nov 26, 2019
@jwlee-ml
Copy link
Contributor

indentation 오류가 있어서 fit 함수를 class 안으로 넣어주셔야 합니다. 그리고 fit 함수 내부에 loss_fn을 cost_fn으로 수정하시면 됩니다. 곧 수정 반영해드리겠습니다

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

2 participants