Traceback (most recent call last):


 "/home/w/python/ma/train.py", line 121, in <module>

main(args)


 "/home/w/python/ma/train.py", line 100, in main

model.fit(train_ds,


 "/home/w/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/hapi/model.py", line 1492, in fit

logs = self._run_one_epoch(train_loader, cbks, 'train')


 "/home/w/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/hapi/model.py", line 1798, in _run_one_epoch

outs = getattr(self, mode + '_batch')(data[:len(self._inputs)],


 "/home/w/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/hapi/model.py", line 940, in train_batch

loss = self._adapter.train_batch(inputs, labels)


 "/home/w/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/hapi/model.py", line 656, in train_batch

losses = self.model._loss(*(to_list(outputs) + labels))


 "/home/w/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 884, in __call__

outputs = self.forward(*inputs, **kwargs)
TypeError: forward() takes 3 positional arguments but 4 were given

Traceback (most recent call last):


 "1.py", line 50, in <module>

writer.add_graph(global_A3Clstm, [rgb.unsqueeze(0), prev_reward, prev_act, prev_vel, (h1, c1), (h2, c2)])


 "/home/gt/anaconda3/envs/py36/lib/python3.6/site-packages/tensorboardX/writer.py", line 697, in add_graph

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


 "/home/gt/anaconda3/envs/py36/lib/python3.6/site-packages/tensorboardX/writer.py", line 137, in add_graph

graph = graph_profile[0]
TypeError: 'GraphDef' object does not support indexing