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