Traceback (most recent call last):


 "main.py", line 119, in <module>

main(args)


 "main.py", line 64, in main

net = BertProber(rel_vec_representation, args)


 "/home/jzhao/program/interpret_bert/re/model.py", line 62, in __init__

self.bert = BertModel.from_pretrained(args.bert_model, config = config)


 "/home/jzhao/anaconda3/envs/python36/lib/python3.6/site-packages/transformers/modeling_utils.py", line 466, in from_pretrained

model = cls(config, *model_args, **model_kwargs)


 "/home/jzhao/anaconda3/envs/python36/lib/python3.6/site-packages/transformers/modeling_bert.py", line 615, in __init__

self.embeddings = BertEmbeddings(config)


 "/home/jzhao/anaconda3/envs/python36/lib/python3.6/site-packages/transformers/modeling_bert.py", line 149, in __init__

self.word_embeddings = nn.Embedding(config.vocab_size, config.hidden_size, padding_idx=0)


 "/home/jzhao/anaconda3/envs/python36/lib/python3.6/site-packages/torch/nn/modules/sparse.py", line 97, in __init__

self.weight = Parameter(torch.Tensor(num_embeddings, embedding_dim))
TypeError: new() received an invalid combination of arguments - got (str, int), but expected one of:

Traceback (most recent call last):


 "/home/ben/.local/bin/cellprofiler", line 11, in <module>

load_entry_point('CellProfiler', 'console_scripts', 'cellprofiler')()


 "/home/ben/repos/CellProfiler/cellprofiler/__main__.py", line 152, in main

app = cellprofiler.gui.app.App(0, workspace_path=workspace_path, pipeline_path=pipeline_path)


 "/home/ben/repos/CellProfiler/cellprofiler/gui/app.py", line 55, in __init__

super(App, self).__init__(*args, **kwargs)


 "/usr/lib/python2.7/dist-packages/wx/_core.py", line 8628, in __init__

self._BootstrapApp()


 "/usr/lib/python2.7/dist-packages/wx/_core.py", line 8196, in _BootstrapApp

return _core_.PyApp__BootstrapApp(*args, **kwargs)


 "/home/ben/repos/CellProfiler/cellprofiler/gui/app.py", line 64, in OnInit

self.frame.start(self.workspace_path, self.pipeline_path)


 "/home/ben/repos/CellProfiler/cellprofiler/gui/cpframe.py", line 350, in start

self.__pipeline_controller.start(workspace_path, pipeline_path)


 "/home/ben/repos/CellProfiler/cellprofiler/gui/pipelinecontroller.py", line 191, in start

self.do_create_workspace()


 "/home/ben/repos/CellProfiler/cellprofiler/gui/pipelinecontroller.py", line 657, in do_create_workspace

self.__pipeline.clear()


 "/home/ben/repos/CellProfiler/cellprofiler/pipeline.py", line 2382, in clear

self.notify_listeners(PipelineClearedEvent())


 "/home/ben/repos/CellProfiler/cellprofiler/pipeline.py", line 3188, in notify_listeners

listener(self, event)


 "/home/ben/repos/CellProfiler/cellprofiler/gui/pipelinecontroller.py", line 1421, in __on_pipeline_event

self.on_image_set_modification()


 "/home/ben/repos/CellProfiler/cellprofiler/gui/pipelinecontroller.py", line 1432, in on_image_set_modification

self.__workspace.invalidate_image_set()


 "/home/ben/repos/CellProfiler/cellprofiler/workspace.py", line 497, in invalidate_image_set

self.save_pipeline_to_measurements()


 "/home/ben/repos/CellProfiler/cellprofiler/workspace.py", line 480, in save_pipeline_to_measurements

self.measurements.add_experiment_measurement(M_PIPELINE, fd.getvalue())


 "/home/ben/repos/CellProfiler/cellprofiler/measurement.py", line 522, in add_experiment_measurement

self.hdf5_dict.add_all(EXPERIMENT, feature_name, [data], [0])


 "/home/ben/repos/CellProfiler/cellprofiler/utilities/hdf5_dict.py", line 792, in add_all

maxshape=(None, 3))


 "/usr/lib/python2.7/dist-packages/h5py/_hl/group.py", line 105, in create_dataset

dsid = dataset.make_new_dset(self, shape, dtype, data, **kwds)


 "/usr/lib/python2.7/dist-packages/h5py/_hl/dataset.py", line 76, in make_new_dset

if isinstance(chunks, tuple) and (-numpy.array([ i>=j for i,j in zip(tmp_shape,chunks) if i is not None])).any():
TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.
