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
You're removing non-existing directory in the main function:
fn main() -> Result<(), Box<dyn Error>> { let mut dir = env::temp_dir(); dir.push("tf-rust-example-xor-saved-model"); fs::remove_dir_all(&dir)?; //<- The directory isn't created yet. train(&dir)?; eval(&dir)?; Ok(()) }
And therefore appears the error: Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
You need replace it after the eval or add something like:
if Path::new(&dir).is_dir(){ fs::remove_dir_all(&dir)?; }
The text was updated successfully, but these errors were encountered:
Hey, thank you for noticing this! Please create a PR!
Sorry, something went wrong.
No branches or pull requests
You're removing non-existing directory in the main function:
And therefore appears the error:
Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
You need replace it after the eval or add something like:
The text was updated successfully, but these errors were encountered: