Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_OperationGetAttrTensorShapeProto (0.23 sec)

  1. tensorflow/c/c_api.h

    // Sets `value` to the binary-serialized TensorShapeProto of the value of
    // `attr_name` attribute of `oper`.
    TF_CAPI_EXPORT extern void TF_OperationGetAttrTensorShapeProto(
        TF_Operation* oper, const char* attr_name, TF_Buffer* value,
        TF_Status* status);
    
    // Fills in `values` with binary-serialized TensorShapeProto values of the
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      EXPECT_TF_META("v", -1, TF_ATTR_SHAPE, 4);
      TF_Buffer* value = TF_NewBuffer();
      TF_OperationGetAttrTensorShapeProto(oper, "v", value, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_EQ(bytes.length(), value->length);
      EXPECT_EQ(0, memcmp(bytes.data(), value->data, value->length));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top