Skip to content

Commit 8599724

Browse files
authored
Update stafnet.py
1 parent 803eb28 commit 8599724

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ppsci/arch/stafnet.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
import paddle
77
from ppsci.arch import base
88
try:
9-
from pgl.nn.conv import GATv2Conv
10-
except ModuleNotFoundError as e:
11-
logger.error("please install pgl with \'pip install pgl\'.")
12-
raise ModuleNotFoundError(str(e))
13-
14-
15-
9+
import pgl
10+
except ModuleNotFoundError:
11+
pass
1612

1713
class Inception_Block_V1(paddle.nn.Layer):
1814
def __init__(self, in_channels, out_channels, num_kernels=6, init_weight=True):

0 commit comments

Comments
 (0)