コード例 #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
ファイル: status.go プロジェクト: rhuangq/tensorflow
func (s *status) String() string {
	return C.GoString(C.TF_Message(s.c))
}