Skip to content

Commit

Permalink
Small fix (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelanghanbao authored Jul 12, 2023
1 parent b16ac9f commit 1fbecf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepxde/utils/array_ops_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def convert_to_array(value):


def hstack(tup):
if not is_tensor(tup[0]) and tup[0] == []:
if not is_tensor(tup[0]) and isinstance(tup[0], list) and tup[0] == []:
tup = list(tup)
if istensorlist(tup[1:]):
tup[0] = bkd.as_tensor([], dtype=config.real(bkd.lib))
Expand Down

0 comments on commit 1fbecf2

Please sign in to comment.