pcb defect detetcion application
[ealt-edge.git] / example-apps / PDD / pcb-defect-detection / libs / networks / some_test.py
1 # -*- coding: utf-8 -*-
2
3 import tensorflow.contrib.slim as slim
4 import os
5
6 os.environ["CUDA_VISIBLE_DEVICES"] = ""
7
8
9 @slim.add_arg_scope
10 def fn(a, c=100):
11
12     return a+c
13
14
15 with slim.arg_scope([fn], a=2):
16     with slim.arg_scope([fn], a=1):
17
18         print(fn())
19
20