(lhs, rhs, smooth)
| 84 | return lhs_np, rhs_np, ograd_np |
| 85 | |
| 86 | def builtin_func(lhs, rhs, smooth): |
| 87 | out = lhs + rhs |
| 88 | return F.where(out < 0, out + smooth, out - smooth) |
| 89 | |
| 90 | def test_elemadd_smooth_train(smooth=0.5, m=4, n=2, seed=2021): |
| 91 | lhs_np, rhs_np, ograd_np = gen_elemadd_data(seed, (m, n)) |
no outgoing calls
no test coverage detected