Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_SetAttrTensorList (0.12 sec)

  1. tensorflow/c/c_api.h

                                                const char* attr_name,
                                                TF_Tensor* value,
                                                TF_Status* status);
    TF_CAPI_EXPORT extern void TF_SetAttrTensorList(TF_OperationDescription* desc,
                                                    const char* attr_name,
                                                    TF_Tensor* const* values,
    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.cc

                          TF_Tensor* value, TF_Status* status) {
      Tensor t;
      status->status = TF_TensorToTensor(value, &t);
      if (status->status.ok()) desc->node_builder.Attr(attr_name, t);
    }
    
    void TF_SetAttrTensorList(TF_OperationDescription* desc, const char* attr_name,
                              TF_Tensor* const* values, int num_values,
                              TF_Status* status) {
      status->status = absl::OkStatus();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      const size_t ndims2 = TF_ARRAYSIZE(dims2);
    
      auto desc = init("list(tensor)");
      TF_Tensor* tmp[] = {
          Int8Tensor(dims1, ndims1, tensor1),
          Int8Tensor(dims2, ndims2, tensor2),
      };
      TF_SetAttrTensorList(desc, "v", tmp, TF_ARRAYSIZE(tmp), s_);
      for (int i = 0; i < TF_ARRAYSIZE(tmp); ++i) {
        TF_DeleteTensor(tmp[i]);
      }
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    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