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

Class VersionInfo

tensorflow/stream_executor/dnn.h:1092–1104  ·  view source on GitHub ↗

A simple class representing the version of the backing library, to workaround the "too perfect forwarding" issue in gcc6+ compilers. See PR#16309 and issue #18402 for links discussing the issue.

Source from the content-addressed store, hash-verified

1090// workaround the "too perfect forwarding" issue in gcc6+ compilers.
1091// See PR#16309 and issue #18402 for links discussing the issue.
1092class VersionInfo {
1093 public:
1094 VersionInfo(int major = 0, int minor = 0, int patch = 0)
1095 : major_(major), minor_(minor), patch_(patch) {}
1096 int major_version() const { return major_; }
1097 int minor_version() const { return minor_; }
1098 int patch() const { return patch_; }
1099
1100 private:
1101 int major_;
1102 int minor_;
1103 int patch_;
1104};
1105
1106// Suite of operations typically used for implementing Deep/Convolutional Neural
1107// Nets. Note: A false return value of an operation indicates the

Callers 2

GetVersionMethod · 0.85
GetVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected