Code Review
/
ealt-edge.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5c71438707d3872d5eeb48a64d9bd85976b488e4
[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