def __str__(self) -> str 函数功能定义实例化对象被str()函数调用或打印时的字符串表示。 函数原型def __str__(self) -> str 返回值说明String类型,以字符串的形式返回Input的shape、format和dtype信息。 父主题: class mindietorch.Input