Traceback (most recent call last):


 "/Users/denis.zubo/miniconda3/envs/pai/lib/python3.6/site-packages/distributed/protocol/serialize.py", line 139, in serialize

header, frames = dumps(x, context=context) if wants_context else dumps(x)


 "/Users/denis.zubo/miniconda3/envs/pai/lib/python3.6/site-packages/distributed/protocol/serialize.py", line 38, in dask_dumps

header, frames = dumps(x)


 "/Users/denis.zubo/miniconda3/envs/pai/lib/python3.6/site-packages/distributed/protocol/keras.py", line 22, in serialize_keras_model

weights = model.get_weights()


 "/Users/denis.zubo/miniconda3/envs/pai/lib/python3.6/site-packages/keras/engine/network.py", line 492, in get_weights

return K.batch_get_value(weights)


 "/Users/denis.zubo/miniconda3/envs/pai/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2420, in batch_get_value

return get_session().run(ops)


 "/Users/denis.zubo/miniconda3/envs/pai/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 877, in run

run_metadata_ptr)


 "/Users/denis.zubo/miniconda3/envs/pai/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1025, in _run

raise RuntimeError('The Session graph is empty.
Add operations to the '
RuntimeError: The Session graph is empty.
Add operations to the graph before calling run().

Traceback (most recent call last):


 "models/onnx_export.py", line 31, in <module>

model.fuse()


 "/home/zhangyi/yolov5-master/models/yolo.py", line 140, in fuse

m.conv = torch_utils.fuse_conv_and_bn(m.conv, m.bn)
# update conv


 "/home/zhangyi/yolov5-master/utils/torch_utils.py", line 86, in fuse_conv_and_bn

w_bn = torch.diag(bn.weight.div(torch.sqrt(bn.eps + bn.running_var)))
RuntimeError: "add_cpu/sub_cpu" not implemented for 'Half'
