torch.sym_float¶ torch.sym_float(a)[source][source]¶ SymInt 感知的浮点数转换实用工具。 参数: 一个(SymInt、SymFloat 或对象)- 要转换的对象