"docs/source/NAS/ApiReference.rst" did not exist on "bd2543e3dc51a8b038c898bb6f965ae610c34d99"
handwrite.py 351 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
h_conv1 = 1
conv_size = nni.choice(2, 3, 5, 7, name='conv_size')
h_pool1 = nni.function_choice(lambda : max_pool(h_conv1),
    lambda : h_conv1,
    lambda : avg_pool
    (h_conv2, h_conv3)
)
tmp = nni.qlognormal(1.2, 3, 4.5)
test_acc = 1
nni.report_intermediate_result(test_acc)
test_acc = 2
nni.report_final_result(test_acc)
nni.choice(foo, bar)(1)