pcb defect detetcion application
[ealt-edge.git] / example-apps / PDD / pcb-defect-detection / libs / networks / some_test.py
diff --git a/example-apps/PDD/pcb-defect-detection/libs/networks/some_test.py b/example-apps/PDD/pcb-defect-detection/libs/networks/some_test.py
new file mode 100755 (executable)
index 0000000..5c71438
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+
+import tensorflow.contrib.slim as slim
+import os
+
+os.environ["CUDA_VISIBLE_DEVICES"] = ""
+
+
+@slim.add_arg_scope
+def fn(a, c=100):
+
+    return a+c
+
+
+with slim.arg_scope([fn], a=2):
+    with slim.arg_scope([fn], a=1):
+
+        print(fn())
+
+