Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/c/c_api.cc

          return;
        }
        storage_left -= n;
        for (int j = 0; j < n; ++j, ++p) {
          *p = shapes[i].dim_size(j);
        }
      }
    }
    
    void TF_OperationGetAttrTensorShapeProto(TF_Operation* oper,
                                             const char* attr_name,
                                             TF_Buffer* value, TF_Status* status) {
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue May 13 06:30:43 UTC 2025
    - 102.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 Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Dec 27 12:18:10 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top