Template Function deepmd::session_get_scalar#
Defined in File commonTF.h
Function Documentation#
- template<typename VT>
VT deepmd::session_get_scalar(tensorflow::Session *session, const std::string name, const std::string scope = "")# Get the value of a tensor.
- Parameters:
session – [in] TensorFlow session.
name – [in] The name of the tensor.
scope – [in] The scope of the tensor.
- Returns:
The value of the tensor.