Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mainly brought from https://github.com/pytorch/examples/blob/master/reinforcement_learning/reinforce.py | |
import gym | |
import numpy as np | |
import torch | |
from torch import nn | |
from torch import optim | |
import torch.nn.functional as F | |
from torch.distributions import Categorical | |
import torch.multiprocessing as mp |
NewerOlder