"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d1387ecee5262e75386ce8948ddcf9a4de0ebbfa"
Unverified Commit b2ac89f2 authored by xiang song(charlie.song)'s avatar xiang song(charlie.song) Committed by GitHub
Browse files

[Bugfix] Fix #2076 (#2111)



* Fix

* Revert "Fix"

This reverts commit 2627630daee33a709a70ef87e1ad9930772430a8.

* Fix

* upd
Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-68-185.ec2.internal>
parent 51ba6621
...@@ -5279,6 +5279,9 @@ class DGLHeteroGraph(object): ...@@ -5279,6 +5279,9 @@ class DGLHeteroGraph(object):
>>> g.format() >>> g.format()
{'created': ['coo', 'csr', 'csc'], 'not created': []} {'created': ['coo', 'csr', 'csc'], 'not created': []}
""" """
if self.num_edges() == 0:
return 0
return self._graph.create_format_() return self._graph.create_format_()
def astype(self, idtype): def astype(self, idtype):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment