Hi, are there are any very simple tutorials, or code samples of how to use .reinforce in batch mode?
Nothing, complicated, (or long to train like gym environments or Atari), just say a synthetic linear regression dataset with some noise added?
This would be really helpful to newbs !
Where’s the test code for .reinforce? Probably a good place to start from, if you wanted to write a batch-wise test problem?
OK- update - the .reinforce tests are in here,

  
      github.com
  
  
    pytorch/pytorch/blob/v0.1.10/test/test_autograd.py 83
import contextlib
import gc
import sys
import math
import torch
import unittest
from copy import deepcopy
from collections import OrderedDict
from torch.autograd import gradcheck

from common import TestCase, run_tests
from torch.autograd._functions import *
from torch.autograd import Variable, Function

if sys.version_info[0] == 2:
    import cPickle as pickle
else:
    import pickle

PRECISION = 1e-4


  This file has been truncated. show original