예제 #1
0
파일: capi.go 프로젝트: chai2010/tensorflow
// Return a pointer to the error message in *s.  The return value
// points to memory that is only usable until the next mutation to *s.
// Always returns an empty string if TF_GetCode(s) is TF_OK.
func _TF_Message(s *_TF_Status) string {
	cmsg := C.TF_Message(((*C.TF_Status)(s)))
	return C.GoString(cmsg)
}
예제 #2
0
func (s *status) String() string {
	return C.GoString(C.TF_Message(s.c))
}