def tune(scale, acc_rate):
 if (acc_rate < 0.001):
  scale *= 0.1
 elif (acc_rate < 0.05):
  scale *= 0.5
 elif (acc_rate < 0.2):
  scale *= 0.9
 elif (acc_rate > 0.95):
  scale *= 10.0
 elif (acc_rate > 0.75):
  scale *= 2.0
 elif (acc_rate > 0.5):
  scale *= 1.1
 return scale

def tune ( scale , acc_rate ) : if ( acc_rate < 0.001 ) : scale *= 0.1 elif ( acc_rate < 0.05 ) : scale *= 0.5 elif ( acc_rate < 0.2 ) : scale *= 0.9 elif ( acc_rate > 0.95 ) : scale *= 10.0 elif ( acc_rate > 0.75 ) : scale *= 2.0 elif ( acc_rate > 0.5 ) : scale *= 1.1 return scale
set attributes for the specified device cli example: .