Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix flake8 scaned python errors (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
chicm-ms authored Jul 10, 2019
1 parent 26f6f07 commit 32e4960
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/trials/cifar10_pytorch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import os
import sys
import time
import math

import torch
import torch.nn as nn
import torch.nn.init as init

Expand Down
2 changes: 1 addition & 1 deletion examples/trials/kaggle-tgs-salt/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def generate_preds(outputs, target_size, pad_mode, threshold=0.5):
if pad_mode == 'resize':
cropped = resize_image(output, target_size=target_size)
else:
cropped = crop_image_softmax(output, target_size=target_size)
cropped = crop_image(output, target_size=target_size)
pred = binarize(cropped, threshold)
preds.append(pred)

Expand Down
2 changes: 2 additions & 0 deletions src/sdk/pynni/nni/curvefitting_assessor/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import numpy as np
import unittest

from .curvefitting_assessor import CurvefittingAssessor
from .model_factory import CurveModel
from nni.assessor import AssessResult

class TestCurveFittingAssessor(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions src/sdk/pynni/nni/smartparam.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@


import random
import numpy as np

from .env_vars import trial_env_vars
from . import trial
Expand Down

0 comments on commit 32e4960

Please sign in to comment.