Skip to content

Examples of parallel training on one GPU using functorch.vmap with torchopt #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: pass lint
  • Loading branch information
Benjamin-eecs committed Aug 6, 2022
commit 05960bc50725534162a2f12cb6ecdd17fc359fa9
4 changes: 2 additions & 2 deletions examples/functorch/parallel_train_torchopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
from collections import namedtuple
from typing import Any, NamedTuple

import functorch
import torch
import torch.nn as nn
import torch.nn.functional as F
from functorch import combine_state_for_ensemble, grad_and_value, make_functional, vmap

import functorch
import torchopt
from functorch import combine_state_for_ensemble, grad_and_value, make_functional, vmap


def make_spirals(n_samples, noise_std=0.0, rotations=1.0):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/low_level/test_low_level_inplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
import copy
import unittest

import functorch
import pytest
import torch
import torch.nn.functional as F
from torch.utils import data
from torchvision import models

import functorch
import torchopt


Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy