发布于 2020-04-01 09:13:47
不,XLA并没有受到反对,事实上还有其他关于它的发行说明:
tf.function,在CPU和GPU上具有“编译或抛出异常”语义。
这张便条实际上与你提到的反对意见有关。所反对的是在XLA_CPU和XLA_GPU中使用字符串tf.device。见弃用警告消息
XLA_GPU and XLA_CPU devices are deprecated and will be
removed in subsequent releases. Instead, use either
@tf.function(experimental_compile=True) for must-compile
semantics, or run with TF_XLA_FLAGS=--tf_xla_auto_jit=2
for auto-clustering best-effort compilation.这就是另一个发布说明所提到的,在用tf.function显式编译下的XLA指南中提到了这一点。
https://stackoverflow.com/questions/60966894
复制相似问题