Skip to content

Commit e771dcd

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/GraphNet into cv_part9
2 parents c6ea690 + f628da7 commit e771dcd

File tree

5,489 files changed

+5285710
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,489 files changed

+5285710
-1
lines changed

graph_net/paddle/validate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import graph_net
1313
import os
1414
import re
15+
import paddle
1516

1617

1718
def load_class_from_file(file_path: str, class_name: str):
@@ -68,7 +69,12 @@ def main(args):
6869
y = model(**state_dict)[0]
6970

7071
print(np.argmin(y), np.argmax(y))
71-
print(y.shape)
72+
if isinstance(y, paddle.Tensor):
73+
print(y.shape)
74+
elif isinstance(y, list) or isinstance(y, tuple):
75+
print(y[0].shape)
76+
else:
77+
raise ValueError("Illegal Return Value.")
7278

7379
if not args.no_check_redundancy:
7480
print("Check redundancy ...")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dda77fde4b537ec1947ab7ca772a7e22148567438f51c8140c4ad22659333583
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"framework": "torch",
3+
"num_devices_required": 1,
4+
"num_nodes_required": 1,
5+
"dynamic": false
6+
}

samples/mmseg/DeiT_B/input_meta.py

Whitespace-only changes.

samples/mmseg/DeiT_B/input_tensor_constraints.py

Whitespace-only changes.

samples/mmseg/DeiT_B/model.py

Lines changed: 1759 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)