prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  ResNet56 default num_classes argument
  ## 🚀 Feature Request
  The `num_classes` argument for [ResNet56_cifar10](https://github.com/mosaicml/composer/blob/main/composer/models/resnet56_cifar10/model.py) should have a default value `num_classes=10`.
  
  ## Motivation
  
  It felt silly when writing a demo notebook to have to specify `num_classes=10` when calling `composer.models.CIFAR10_ResNet56(num_classes=10)`. The model has "cifar10" in its name, and even if it didn't, it's most common use is for cifar10.
  
  ## Implementation
  
  Does it require any changes beyond the `__init__()` signature?
  
  </issue>
  <code>
  [start of composer/models/resnet56_cifar10/model.py]
  1 # Copyright 2021 MosaicML. All Rights Reserved.
  2 
  3 from typing import List, Optional
  4 
  5 from composer.models.base import MosaicClassifier
  6 from composer.models.model_hparams import Initializer
  7 from composer.models.resnets import CIFAR_ResNet
  8 
  9 
  10 class CIFAR10_ResNet56(MosaicClassifier):
  11     """A ResNet-56 model extending :class:`MosaicClassifier`.
  12 
  13     See this `paper <https://arxiv.org/abs/1512.03385>`_ for details
  14     on the residual network architecture.
  15 
  16     Args:
  17         num_classes (int): The number of classes for the model.
  18         initializers (List[Initializer], optional): Initializers
  19             for the model. ``None`` for no initialization.
  20             (default: ``None``)
  21     """
  22 
  23     def __init__(
  24         self,
  25         num_classes: int,
  26         initializers: Optional[List[Initializer]] = None,
  27     ) -> None:
  28         if initializers is None:
  29             initializers = []
  30 
  31         model = CIFAR_ResNet.get_model_from_name(
  32             "cifar_resnet_56",
  33             initializers,
  34             num_classes,
  35         )
  36         super().__init__(module=model)
  37
  [end of composer/models/resnet56_cifar10/model.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/composer/models/resnet56_cifar10/model.py b/composer/models/resnet56_cifar10/model.py
  --- a/composer/models/resnet56_cifar10/model.py
  +++ b/composer/models/resnet56_cifar10/model.py
  @@ -22,7 +22,7 @@
   
       def __init__(
           self,
  -        num_classes: int,
  +        num_classes: int = 10,
           initializers: Optional[List[Initializer]] = None,
       ) -> None:
           if initializers is None:
  
verification_info: {"golden_diff": "diff --git a/composer/models/resnet56_cifar10/model.py b/composer/models/resnet56_cifar10/model.py\n--- a/composer/models/resnet56_cifar10/model.py\n+++ b/composer/models/resnet56_cifar10/model.py\n@@ -22,7 +22,7 @@\n \n     def __init__(\n         self,\n-        num_classes: int,\n+        num_classes: int = 10,\n         initializers: Optional[List[Initializer]] = None,\n     ) -> None:\n         if initializers is None:\n", "issue": "ResNet56 default num_classes argument\n## \ud83d\ude80 Feature Request\r\nThe `num_classes` argument for [ResNet56_cifar10](https://github.com/mosaicml/composer/blob/main/composer/models/resnet56_cifar10/model.py) should have a default value `num_classes=10`.\r\n\r\n## Motivation\r\n\r\nIt felt silly when writing a demo notebook to have to specify `num_classes=10` when calling `composer.models.CIFAR10_ResNet56(num_classes=10)`. The model has \"cifar10\" in its name, and even if it didn't, it's most common use is for cifar10.\r\n\r\n## Implementation\r\n\r\nDoes it require any changes beyond the `__init__()` signature?\n", "before_files": [{"content": "# Copyright 2021 MosaicML. All Rights Reserved.\n\nfrom typing import List, Optional\n\nfrom composer.models.base import MosaicClassifier\nfrom composer.models.model_hparams import Initializer\nfrom composer.models.resnets import CIFAR_ResNet\n\n\nclass CIFAR10_ResNet56(MosaicClassifier):\n    \"\"\"A ResNet-56 model extending :class:`MosaicClassifier`.\n\n    See this `paper <https://arxiv.org/abs/1512.03385>`_ for details\n    on the residual network architecture.\n\n    Args:\n        num_classes (int): The number of classes for the model.\n        initializers (List[Initializer], optional): Initializers\n            for the model. ``None`` for no initialization.\n            (default: ``None``)\n    \"\"\"\n\n    def __init__(\n        self,\n        num_classes: int,\n        initializers: Optional[List[Initializer]] = None,\n    ) -> None:\n        if initializers is None:\n            initializers = []\n\n        model = CIFAR_ResNet.get_model_from_name(\n            \"cifar_resnet_56\",\n            initializers,\n            num_classes,\n        )\n        super().__init__(module=model)\n", "path": "composer/models/resnet56_cifar10/model.py"}]}