I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. D:\Program Files\Python39\lib\site-packages\keras\initializers\initializers_v2.py:120: UserWarning: The initializer VarianceScaling is unseeded and being called multiple times, which will return identical values each time (even if the initializer is unseeded). Please update your code to provide a seed to the initializer, or avoid using the same initalizer instance more than once. warnings.warn(
时间: 2024-04-27 20:20:03 浏览: 208
tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this T
5星 · 资源好评率100%
这段代码是 TensorFlow 运行时输出的一些信息。它告诉我们当前 TensorFlow 的二进制文件已经优化过,使用了 oneAPI Deep Neural Network Library (oneDNN) 来提高性能,同时也提醒我们如果要在其他操作中也使用这些 CPU 指令,需要重新编译 TensorFlow 并使用相应的编译器标志。此外,还有一个 Keras 的警告,提示使用了未设置种子的 VarianceScaling 初始化器,并且被多次调用,会返回相同的值。建议在初始化器中设置种子,或避免多次使用同一初始化器实例。
阅读全文