mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[functorch] excise remaining functorch imports from examples (#91282)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91282 Approved by: https://github.com/zou3519
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
import torch
|
||||
from torch import nn
|
||||
from torch.nn.functional import mse_loss
|
||||
from functorch import jacrev, vmap
|
||||
from torch.func import jacrev, vmap
|
||||
|
||||
sigma = 0.5
|
||||
epsilon = 4.
|
||||
|
@ -2,7 +2,7 @@
|
||||
# (https://github.com/ericjang/maml-jax).
|
||||
# We translated his implementation from JAX to PyTorch.
|
||||
|
||||
from functorch import grad, vmap
|
||||
from torch.func import grad, vmap
|
||||
import matplotlib.pyplot as plt
|
||||
import math
|
||||
import torch
|
||||
|
Reference in New Issue
Block a user