(weight, bias, x)
| 30 | # This is a simple linear function with non-linear activation. |
| 31 | |
| 32 | def predict(weight, bias, x): |
| 33 | return F.linear(x, weight, bias).tanh() |
| 34 | |
| 35 | ###################################################################### |
| 36 | # Let's add some dummy data: a weight, a bias, and a feature vector x. |
no outgoing calls
no test coverage detected