Closed zzeric closed 6 years ago
It looks like your save path is invalid
4 save_path="e:./dnc_model_171.ckpt",
try giving it one that isn't a mix of being relative and absolute.
I have encountered the same problem,and the problem is caused by that I save the model file in the same path which I put the Python file. When I save the model file in a different path from the path of python file, the problem is solved. Good luck!
It has been 14 days with no activity and the awaiting response
label was assigned. Is this still an issue? Please update the label and/or status accordingly.
It has been 14 days with no activity and the awaiting response
label was assigned. Is this still an issue? Please update the label and/or status accordingly.
Nagging Awaiting Response: It has been 14 days with no activityand the awaiting response
label was assigned. Is this still an issue?
Nagging Awaiting Response: It has been 14 days with no activityand the awaiting response
label was assigned. Is this still an issue?
Nagging Awaiting Response: It has been 14 days with no activityand the awaiting response
label was assigned. Is this still an issue?
I have encountered the same problem,and the problem is caused by that I save the model file in the same path which I put the Python file. When I save the model file in a different path from the path of python file, the problem is solved. Good luck!
I have got the same problem: is there any working solution yet? The above solution is not working for me.
I use absolute paths for data and models, and the problem solved.
I use absolute paths for data and models, and the problem solved.
Yes, it works for me too ---> tf.VERSION: 1.12.0
System information
Describe the problem
try to load a model and then save it, same codes ran in three computers,one failed when saving (tensorflow-gpu 1.3.0 GTX 1050Ti 4GB), another two passed (tensorflow 1.3.0 and tensorflow-gpu 1.3.0 with GTX 780 Ti 4GB) . And I ran it as Administrator, so should not lack of write permission
here is the code ` def fit(self, training_iters =1e2, learning_rate = 1e-4, optimizer_epsilon = 1e-10, max_gard_norm = 50, display_step = 5, save_path = None, restore_path = None):
and exception logs `--------------------------------------------------------------------------- PermissionDeniedError Traceback (most recent call last) d:\anaconda3664\lib\site-packages\tensorflow\python\client\session.py in _do_call(self, fn, args) 1326 try: -> 1327 return fn(args) 1328 except errors.OpError as e:
d:\anaconda3664\lib\site-packages\tensorflow\python\client\session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata) 1305 feed_dict, fetch_list, target_list, -> 1306 status, run_metadata) 1307
d:\anaconda3664\lib\contextlib.py in exit(self, type, value, traceback) 88 try: ---> 89 next(self.gen) 90 except StopIteration:
d:\anaconda3664\lib\site-packages\tensorflow\python\framework\errors_impl.py in raise_exception_on_not_ok_status() 465 compat.as_text(pywrap_tensorflow.TF_Message(status)), --> 466 pywrap_tensorflow.TF_GetCode(status)) 467 finally:
PermissionDeniedError: Failed to create a directory: e:. [[Node: save_5/SaveV2 = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_INT64, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save_5/Const_0_0, save_5/SaveV2/tensor_names, save_5/SaveV2/shape_and_slices, act_core/act_output_linear/b/_939, act_core/act_output_linear/b/RMSProp/_941, act_core/act_output_linear/b/RMSProp_1/_943, act_core/act_output_linear/w/_945, act_core/act_output_linear/w/RMSProp/_947, act_core/act_output_linear/w/RMSProp_1/_949, act_core/halting_linear/b/_951, act_core/halting_linear/b/RMSProp/_953, act_core/halting_linear/b/RMSProp_1/_955, act_core/halting_linear/w/_957, act_core/halting_linear/w/RMSProp/_959, act_core/halting_linear/w/RMSProp_1/_961, global_step, lstm/b_gates/_963, lstm/b_gates/RMSProp/_965, lstm/b_gates/RMSProp_1/_967, lstm/w_gates/_969, lstm/w_gates/RMSProp/_971, lstm/w_gates/RMSProp_1/_973, lstm_1/b_gates/_975, lstm_1/b_gates/RMSProp/_977, lstm_1/b_gates/RMSProp_1/_979, lstm_1/w_gates/_981, lstm_1/w_gates/RMSProp/_983, lstm_1/w_gates/RMSProp_1/_985, lstm_2/b_gates/_987, lstm_2/b_gates/RMSProp/_989, lstm_2/b_gates/RMSProp_1/_991, lstm_2/w_gates/_993, lstm_2/w_gates/RMSProp/_995, lstm_2/w_gates/RMSProp_1/_997)]]
During handling of the above exception, another exception occurred:
PermissionDeniedError Traceback (most recent call last)