tensorflow/core/common_runtime/eval_const_tensor.cc
// Returns a Tensor containing the underlyiing constant value of a Node if the
// node contains a constant value.
Returns a Tensor containing the underlyiing constant value of a Node if the
node contains a constant value.
Returns a Tensor containing the underlyiing constant value of a Node if the node contains a constant value .
Status EvaluateConstantNode(const Node& node, Tensor* output, bool* success) {
  *success = false;
  if (node.IsConstant()) {
    if (output->FromProto(node.def().attr().at("value").tensor())) {
      *success = true;
    }
  }
  return Status::OK();
}
Status EvaluateConstantNode ( const Node & node , Tensor * output , bool * success ) { * success = false ; if ( node . IsConstant ( ) ) { if ( output -> FromProto ( node . def ( ) . attr ( ) . at ( " " ) . tensor ( ) ) ) { * success = true ; } } return Status :: OK ( ) ; }
Returns a Tensor containing the underlyiing constant value of a Node if the
node contains a constant value.
Returns a Tensor containing the underlyiing constant value of a Node if the node contains a constant value .