MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CheckIfFeatureUnused

Function CheckIfFeatureUnused

tensorflow/core/platform/cpu_feature_guard.cc:45–51  ·  view source on GitHub ↗

Check if CPU feature is included in the TensorFlow binary.

Source from the content-addressed store, hash-verified

43
44// Check if CPU feature is included in the TensorFlow binary.
45void CheckIfFeatureUnused(CPUFeature feature, const string& feature_name,
46 string& missing_instructions) {
47 if (TestCPUFeature(feature)) {
48 missing_instructions.append(" ");
49 missing_instructions.append(feature_name);
50 }
51}
52
53// Raises an error if the binary has been compiled for a CPU feature (like AVX)
54// that isn't available on the current machine. It also warns of performance

Callers 1

Calls 2

TestCPUFeatureFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected