tensorflow-core-framework-kernel_def_util.h 2019-06-19 1557 tensorflow-core-framework ```cpp #ifndef TENSORFLOW_CORE_FRAMEWORK_KERNEL_DEF_UTIL_H_ #define TENSORFLOW_CORE_FRAMEWORK_KERNEL_DEF_UTIL_H_ #include "tensorflow/core/framework/kernel_def.pb.h" #include "tensorflow/core/framework/node_def_util.h" namespace tensorflow { // Returns whether the attrs satisfy the constraints in the kernel_def. Returns // an error if attrs in kernel_def are not found, or have a mismatching type. Status KernelAttrsMatch(const KernelDef& kernel_def, AttrSlice attrs, bool* match); } // namespace tensorflow #endif // TENSORFLOW_CORE_FRAMEWORK_KERNEL_DEF_UTIL_H_ ``` 本文链接: http://codeeyes.net/archives/tensorflow-core-framework-kernel_def_util_h.html