Traceback (most recent call last):


 "/home/hyu/miniconda3/envs/fmpy/lib/python3.8/site-packages/aio_pika/tools.py", line 166, in __call__

cb(self.__sender(), *args, **kwargs)
TypeError: on_close() takes from 1 to 2 positional arguments but 3 were given

Traceback (most recent call last):


 "/Users/leo/Desktop/yolov5/models/yolo.py", line 279, in <module>

tb_writer.add_graph(model.model, img)
# add model to tensorboard


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/utils/tensorboard/writer.py", line 724, in add_graph

self._get_file_writer().add_graph(graph(model, input_to_model, verbose))


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/utils/tensorboard/_pytorch_graph.py", line 286, in graph

trace = torch.jit.trace(model, args)


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/jit/_trace.py", line 742, in trace

_module_class,


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/jit/_trace.py", line 940, in trace_module

_force_outplace,


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 725, in _call_impl

result = self._slow_forward(*input, **kwargs)


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 709, in _slow_forward

result = self.forward(*input, **kwargs)


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/nn/modules/container.py", line 117, in forward

input = module(input)


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 725, in _call_impl

result = self._slow_forward(*input, **kwargs)


 "/Users/leo/.virtualenvs/yolov5_3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 709, in _slow_forward

result = self.forward(*input, **kwargs)


 "/Users/leo/Desktop/yolov5/models/common.py", line 210, in forward

return torch.cat(x, self.d)
TypeError: cat() received an invalid combination of arguments - got (Tensor, int), but expected one of:
