PocketFlow icon indicating copy to clipboard operation
PocketFlow copied to clipboard

Missing 1 required positional argument in constructor : data_format

Open tlatkowski opened this issue 5 years ago • 0 comments

System information

  • PocketFlow version: commit: 53b82cba5a34834400619e7c335a23995d45c2a6
  • Doc Link: https://pocketflow.github.io/self_defined_models/

Describe the documentation issue In the definition of ModelHelper one positional argument is missing data_format:

class ModelHelper(AbstractModelHelper):
  """Model helper for creating a ConvNet model for the Fashion-MNIST dataset."""

  def __init__(self):
    """Constructor function."""

    # class-independent initialization
    super(ModelHelper, self).__init__()

whereas examples/convnet_at_fmnist.py script is correct:

class ModelHelper(AbstractModelHelper):
  """Model helper for creating a ConvNet model for the Fashion-MNIST dataset."""

  def __init__(self, data_format='channels_last'):
    """Constructor function."""

    # class-independent initialization
    super(ModelHelper, self).__init__(data_format)

We welcome contributions by users. Will you be able to update submit a PR to fix the doc Issue?

Yes

tlatkowski avatar Sep 17 '19 13:09 tlatkowski