def step0(pt, model): net = Net(pt, model=model, noTF=1) # lib/net.Net instantiate the NetBuilder -by Mario print("\tthe big model is initialized.") WPQ, pt, model = net.preprocess_resnet( ) # WPQ stores pruned values, which will be later saved to the caffemodel -by Mario redprint( "\tstep0 end! and ...(this step mainly change the pt:split the inpalce relu)" ) print("\tWPQ : ", WPQ) print("\tpt : ", pt) print("\tmodel : ", model) return {"WPQ": WPQ, "pt": pt, "model": model}
def step0(pt, model): net = Net(pt, model=model, noTF=1) # lib/net.Net instantiate the NetBuilder -by Mario WPQ, pt, model = net.preprocess_resnet() # WPQ stores pruned values, which will be later saved to the caffemodel -by Mario return {"WPQ": WPQ, "pt": pt, "model": model}
def step0(pt, model): net = Net(pt, model=model, noTF=1) WPQ, pt, model = net.preprocess_resnet() return {"WPQ": WPQ, "pt": pt, "model": model}