Traceback (most recent call last):


 "translate.py", line 153, in <module>

main()


 "translate.py", line 77, in main

translator = onmt.Translator(opt, dummy_opt.__dict__)


 "/home/pytorchwork/OpenNMT-py/onmt/Translator.py", line 29, in __init__

model_opt, self.fields, use_gpu(opt), checkpoint)


 "/home/pytorchwork/OpenNMT-py/onmt/ModelConstructor.py", line 161, in make_base_model

model.load_state_dict(checkpoint['model'])


 "/usr/local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 360, in load_state_dict

own_state[name].copy_(param)


 "/usr/local/lib/python3.5/site-packages/torch/autograd/variable.py", line 65, in __getattr__

return object.__getattribute__(self, name)
AttributeError: 'Variable' object has no attribute 'copy_'
`Traceback (most recent call last):


 "src/validate_on_lfw.py", line 164, in <module>

main(parse_arguments(sys.argv[1:]))


 "src/validate_on_lfw.py", line 69, in main

image_batch, label_batch = facenet.create_input_pipeline(eval_input_queue, image_size, nrof_preprocess_threads, batch_size_placeholder)


 "F:\a\facenet\facenet-master\src\facenet.py", line 111, in create_input_pipeline

image = tf.cond(get_control_flag(control[0], RANDOM_ROTATE),


 "F:\a\facenet\facenet-master\src\facenet.py", line 140, in get_control_flag

return tf.equal(tf.math.mod(tf.math.floor_div(control, field), 2), 1)


 "D:\anaconda\lib\site-packages\tensorflow_core\python\util\module_wrapper.py", line 193, in __getattr__

attr = getattr(self._tfmw_wrapped_module, name)
AttributeError: module 'tensorflow._api.v1.math' has no attribute 'floor_div'`
