Commit dfce752a authored by James Ring's avatar James Ring Committed by TensorFlower Gardener
Browse files

Add some helper functions to C API.

This change adds:
  * TF_OpKernel{Context,Construction}_Failure - used by C kernels to
    report failures in their compute or construction functions

  * TF_OpKernel{Context,Construction_GetAttrType - used by C kernels to
    read TF_DataType attributes from their compute or construction
    context. A macro is used for the implementation, as there will be a
    handful of these methods in subsequent CLs and their implementation is
    boilerplate.

PiperOrigin-RevId: 229311735
parent a6de7200
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment