python 类参数传递
简单高效的类参数:
class Params:
pass
opt=Params()
opt.initial_width=24
opt.slope=36
opt.quantized_param=2.5
opt.network_depth=13
opt.bottleneck_ratio=1
opt.group_width=8
opt.stride=2
opt.se_ratio=4
*参数例子:
def test1(*args):
test3(*args)
def test2(**kargs):
test3(**kargs)
def test3(a, b):
print(a,b)
test1((1,2),5)
test2(b=1,d=2)