Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_OpKernelConstruction_GetAttrBool (0.43 sec)

  1. tensorflow/c/kernels.h

    // places it into *val. *status is set to TF_OK.
    //
    // If the attribute could not be found or could not be interpreted as
    // bool, *status is populated with an error.
    TF_CAPI_EXPORT extern void TF_OpKernelConstruction_GetAttrBool(
        TF_OpKernelConstruction* ctx, const char* attr_name, TF_Bool* val,
        TF_Status* status);
    
    // Interprets the named kernel construction attribute as string and
    // places it into *val. `val` must
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:46:22 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. tensorflow/c/kernels_test.cc

        unsigned char val;
        TF_Status* status = TF_NewStatus();
        EXPECT_TF_SIZE(/*attr_name*/ "Attr", /*expected_list_size*/ -1,
                       /*expected_total_size*/ -1);
        TF_OpKernelConstruction_GetAttrBool(ctx, "Attr", &val, status);
        EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        EXPECT_EQ(1, val);
        TF_DeleteStatus(status);
        return static_cast<void*>(s);
      };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
Back to top