File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,11 @@ def build_multiple_neighbor_list(
385385 ).to (device = nlist .place )
386386 # nb x nloc x nsel
387387 nlist = paddle .concat ([nlist , pad ], axis = - 1 )
388- nsel = nsels [- 1 ]
388+ if paddle .is_tensor (nsel ):
389+ nsel = paddle .to_tensor (nsels [- 1 ], dtype = nsel .dtype )
390+ else :
391+ nsel = nsels [- 1 ]
392+
389393 # nb x nall x 3
390394 coord1 = coord .reshape ([nb , - 1 , 3 ])
391395 nall = coord1 .shape [1 ]
Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ def tearDown(self):
115115 JITTest .tearDown (self )
116116
117117
118- @unittest .skip ("var dtype int32/int64 confused in if block" )
119118class TestEnergyModelDPA2 (unittest .TestCase , JITTest ):
120119 def setUp (self ):
121120 input_json = str (Path (__file__ ).parent / "water/se_atten.json" )
Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ def tearDown(self):
183183 shutil .rmtree (f )
184184
185185
186- @unittest .skip ("Paddle do not support MultiTaskSeA." )
187186class TestMultiTaskSeA (unittest .TestCase , MultiTaskTrainTest ):
188187 def setUp (self ):
189188 multitask_se_e2_a = deepcopy (multitask_template )
You can’t perform that action at this time.
0 commit comments