allow_input_downcast (Boolean or None) – True means that the values passed as inputs when calling the function can be silently downcasted to fit the dtype of the corresponding Variable, which may lose precision. False means that it will only be cast to a more general, or precise, type. None (default) is almost like False, but allows downcasting of Python float scalars to floatX.
从Theano文档:
例如(也许不是最具说明性的),这似乎表明如果您的输入是dtypenp.浮动64并且您的变量被实例化为具有dtypenp.浮动32,输入将转换为np.浮动32当标志设置为真时。在
相关问题 更多 >
编程相关推荐