MCPcopy Create free account
hub / github.com/pytorch/tutorials / predict

Function predict

intermediate_source/jacobians_hessians.py:32–33  ·  view source on GitHub ↗
(weight, bias, x)

Source from the content-addressed store, hash-verified

30# This is a simple linear function with non-linear activation.
31
32def 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.

Callers 2

compute_jacFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected