D | op_requires.h | 41 #define OP_REQUIRES(CTX, EXP, STATUS) \ argument 45 (CTX)->CtxFailure(__FILE__, __LINE__, (STATUS)); \ 60 #define OP_REQUIRES_OK_OR_SET_PAYLOAD(CTX, PAYLOAD_KEY, PAYLOAD_VALUE, STATUS) \ argument 62 if (!TF_PREDICT_TRUE(STATUS.ok())) { \ 65 STATUS.SetPayload(PAYLOAD_KEY, PAYLOAD_VALUE); \ 67 (CTX)->CtxFailureWithWarning(__FILE__, __LINE__, STATUS); \ 72 #define OP_REQUIRES_ASYNC(CTX, EXP, STATUS, CALLBACK) \ argument 75 (CTX)->CtxFailure(__FILE__, __LINE__, (STATUS)); \ 81 #define OP_REQUIRES_OK_ASYNC(CTX, STATUS, CALLBACK) \ argument 83 const ::tensorflow::Status& _s(STATUS); \
|