Hi, BarclayII,
I have the same errors with abasak, since I add some training code of another Neural Network (NN) before the training of GraphSage. Specifically, I utilize the NN to extract features, which are utilized to construct the graph for GraphSage.
Changing the multi-processing start method from ‘fork’ to ‘spawn’ doesn’t address the problem. Another error occurs in blew.
Traceback (most recent call last):
File “/home/xxx/examples/base_train_kmeans.py”, line 624, in
main(args)
File “/home/xxx/examples/base_train_kmeans.py”, line 152, in main
embs = attr_graph(dict_f, labels, cams)
File “/home/xxx/examples/base_train_kmeans.py”, line 568, in attr_graph
p.start()
File “/home/robot/anaconda3/envs/cycada/lib/python3.6/multiprocessing/process.py”, line 105, in start
self._popen = self._Popen(self)
File “/home/robot/anaconda3/envs/cycada/lib/python3.6/multiprocessing/context.py”, line 284, in _Popen
return Popen(process_obj)
File “/home/robot/anaconda3/envs/cycada/lib/python3.6/multiprocessing/popen_spawn_posix.py”, line 32, in init
super().init(process_obj)
File “/home/robot/anaconda3/envs/cycada/lib/python3.6/multiprocessing/popen_fork.py”, line 19, in init
self._launch(process_obj)
File “/home/robot/anaconda3/envs/cycada/lib/python3.6/multiprocessing/popen_spawn_posix.py”, line 47, in _launch
reduction.dump(process_obj, fp)
File “/home/robot/anaconda3/envs/cycada/lib/python3.6/multiprocessing/reduction.py”, line 60, in dump
ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can’t pickle <function run at 0x7f7970a157b8>: it’s not the same object as main.run[quote=“BarclayII, post:3, topic:1207, full:true”]
Did you make any changes to the code? Were you creating something on GPU before starting the subprocesses?
Any suggestions about this issue? Thanks in advance!