Skip to content

Commit aa44366

Browse files
committed
[compliance_checker] check weights_initialization based on metadata
1 parent 4c3c83b commit aa44366

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mlperf_logging/compliance_checker/1.0.0/closed_rnnt.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
- BEGIN:
22
CODE: >
33
s.update({
4-
'num_weight_inits': 0
4+
'initialized_tensors': []
55
})
66
77
- KEY:
88
NAME: weights_initialization
9-
POST: s['num_weight_inits'] += 1
109
REQ: AT_LEAST_ONE
10+
CHECK:
11+
- "'tensor' in v['metadata']"
12+
POST: >
13+
s['initialized_tensors'] += [v['metadata']['tensor']]
1114
1215
- END:
13-
CHECK: s['num_weight_inits'] == 7
16+
CHECK: sorted(s['initialized_tensors']) == sorted(['pre_rnn', 'post_rnn', 'pred_embed', 'dec_rnn', 'joint_pred', 'joint_enc', 'joint_net'])
1417

1518
- KEY:
1619
NAME: global_batch_size

0 commit comments

Comments
 (0)