About using dgl.nn.gategraphconv

The following prompt appeared:

 UserWarning: This overload of nonzero is deprecated:
        nonzero()
Consider using one of the following signatures instead:
        nonzero(*, bool as_tuple) (Triggered internally at  /opt/conda/conda-bld/pytorch_1595629403081/work/torch/csrc/utils/python_arg_parser.cpp:766.)
  eids = (etypes == i).nonzero().view(-1).type(graph.idtype)

Is it the problem with my code?

No, this is a warning from dgl.nn.gategraphconv due to the new version of PyTorch. We have fixed that in this PR.