From 5aa210042891ae9d6705fb770fdf47d3bf27f159 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 12 Jul 2018 18:07:51 +0200 Subject: [PATCH] Fix TabError for Python 3 TabError: inconsistent use of tabs and spaces in indentation is treated as a syntax error in Python 3. ``` ./example/reinforcement-learning/ddpg/strategies.py:65:39: E999 TabError: inconsistent use of tabs and spaces in indentation action = policy.get_action(obs) ^ ``` --- example/reinforcement-learning/ddpg/strategies.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/example/reinforcement-learning/ddpg/strategies.py b/example/reinforcement-learning/ddpg/strategies.py index d73ad060cc87..eb22ddf59728 100644 --- a/example/reinforcement-learning/ddpg/strategies.py +++ b/example/reinforcement-learning/ddpg/strategies.py @@ -61,7 +61,7 @@ def reset(self): def get_action(self, obs, policy): # get_action accepts a 2D tensor with one row - obs = obs.reshape((1, -1)) + obs = obs.reshape((1, -1)) action = policy.get_action(obs) increment = self.evolve_state() @@ -94,5 +94,3 @@ def __init__(self): plt.plot(states) plt.show() - -