NumpyScalarCompatibleError

public enum NumpyScalarCompatibleError : Error

Cannot create a tensor from numpy array.

  • The PythonObject is not a numpy array.

    Declaration

    Swift

    case notNumpy
  • The numpy array type doesn’t match the expected output type.

    Declaration

    Swift

    case noDataConversion(PythonObject, Any.Type)
  • Cannot find shape information from numpy array.

    Declaration

    Swift

    case noShape
  • Cannot find data pointer from the numpy array.

    Declaration

    Swift

    case noPointer