File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
unit/sagemaker/serve/utils Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 10
10
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
+ # flake8: noqa: F631
13
14
from __future__ import absolute_import
14
15
15
16
import pytest
@@ -221,7 +222,7 @@ def test_happy_pytorch_sagemaker_endpoint(
221
222
)
222
223
if caught_ex :
223
224
logger .exception (caught_ex )
224
- assert ( # noqa: F631
225
+ assert (
225
226
False ,
226
227
), f"{ caught_ex } was thrown when running pytorch squeezenet sagemaker endpoint test"
227
228
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ def test_format_instance_type_without_ml_success():
101
101
assert formatted_instance_type == "g5.48xlarge"
102
102
103
103
104
- @patch ("sagemaker.serve.utils.hardware_detector .estimate_command_parser" )
105
- @patch ("sagemaker.serve.utils.hardware_detector .gather_data" )
104
+ @patch ("accelerate.commands.estimate .estimate_command_parser" )
105
+ @patch ("accelerate.commands.estimate .gather_data" )
106
106
def test_total_inference_model_size_mib (
107
107
mock_gather_data ,
108
108
mock_parser ,
You can’t perform that action at this time.
0 commit comments