votes up 6

Unknown input/output type: %s of type %s.

Package:
torch
github stars 50580
Exception Class:
TypeError

Raise code

        rectified.append(blob)
            else:
                raise TypeError(
                    "I/O blob #{} of unsupported type: {} of type {}"
                    .format(len(rectified), str(blob), type(blob)))
        return rectified
    else:
        raise TypeError(
            "Unknown input/output type: %s of type %s." %
            (str(blobs), type(blobs))
        )


def CreateOperator(
    operator_type,
    inpu
😲 Agile task management is now easier than calling a taxi. #Tracklify
🙏 Scream for help to Ukraine
Today, 3rd July 2022, Russia continues bombing and firing Ukraine. Don't trust Russia, they are bombing us and brazenly lying in same time they are not doing this 😠, civilians and children are dying too! We are screaming and asking exactly you to help us, we want to survive, our families, children, older ones.
Please spread the information, and ask your governemnt to stop Russia by any means. We promise to work extrahard after survival to make the world safer place for all.

Ways to fix

votes up 2 votes down

Error code:

from caffe2.python import core
op = core.CreateOperator(
  "GaussianFill",
  5,               #Error occurs because of 5 is integer 
  ["Z"],
  shape=[100, 100], # shape argument as a list of ints.
  mean=1.0# mean as a single float
  std=1.0, # std as a single float
)
print(str(op))

CreateOperator gets string,binary,list, tuple as an input/output arguments. In the above we try to assign an integer as an input, That's why we get an error.

Fix code:

from caffe2.python import core
op = core.CreateOperator(
  "GaussianFill",
  [], # GaussianFill does not need any parameters.
  ["Z"],
  shape=[100, 100], # shape argument as a list of ints.
  mean=1.0# mean as a single float
  std=1.0, # std as a single float
)
print(str(op))

Jun 05, 2021 anonim answer
anonim 13.0k

Add a possible fix

Please authorize to post fix