Skip to content

caffe --version should print the version/git hash #2969

@ls1xt

Description

@ls1xt

caffe does not print its version.
Current behaviour:

$ caffe --version
caffe

The expected behaviour would be to print the git hash.

$ caffe --version
caffe version rc2-470-g6a5425f

This issue can be resolved by setting gflags::SetVersionString.
The git hash can be obtained by git describe --tags. See this stackoverflow question for greater
detail: http://stackoverflow.com/questions/1435953/how-can-i-pass-git-sha1-to-compiler-as-definition-using-cmake

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions