PyraNet icon indicating copy to clipboard operation
PyraNet copied to clipboard

confusing code

Open argman opened this issue 7 years ago • 1 comments

local ResidualUp = n >= 2 and ResidualPyramid or Residual

as i am not familar with lua, what does this mean ? if n >=2 use res_pyra and others residual? but the parameters of the two function is not the same

argman avatar Mar 13 '18 10:03 argman

If n >= 2, then ResidualUp = ResidualPyramid Else, ResidualUp = Residual

xiashh avatar May 31 '18 16:05 xiashh