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

Function fnet_single

intermediate_source/neural_tangent_kernels.py:81–82  ·  view source on GitHub ↗
(params, x)

Source from the content-addressed store, hash-verified

79params = {k: v.detach() for k, v in net.named_parameters()}
80
81def fnet_single(params, x):
82 return functional_call(net, params, (x.unsqueeze(0),)).squeeze(0)
83
84######################################################################
85# Compute the NTK: method 1 (Jacobian contraction)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected