Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 20, 2023
1 parent 33dd319 commit 12dbab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/model/test_onnx_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ def test_check_large_model(self):
import onnx
import torch
import torch.nn as nn

from neural_compressor.model.onnx_model import ONNXModel

class Net(nn.Module):
Expand All @@ -422,6 +423,7 @@ def __init__(self, in_features, out_features):
def forward(self, x):
x = self.fc(x)
return x

# model > 2GB
model = Net(512, 1024 * 1024)
input = torch.randn(512, requires_grad=True)
Expand Down

0 comments on commit 12dbab2

Please sign in to comment.