Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for TF_SetAttrTensor (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tensorflow/c/c_test_util.cc

      return op;
    }
    
    void ConstHelper(TF_Tensor* t, TF_Graph* graph, TF_Status* s, const char* name,
                     TF_Operation** op) {
      TF_OperationDescription* desc = TF_NewOperation(graph, "Const", name);
      TF_SetAttrTensor(desc, "value", t, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_SetAttrType(desc, "dtype", TF_TensorType(t));
      *op = TF_FinishOperation(desc, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 17.8K bytes
    - Click Count (1)
  2. tensorflow/c/c_api_test.cc

                                  const float* values, const char* name) {
        unique_tensor_ptr tensor(FloatTensor2x2(values), TF_DeleteTensor);
        TF_OperationDescription* desc = TF_NewOperation(graph, "Const", name);
        TF_SetAttrTensor(desc, "value", tensor.get(), s);
        if (TF_GetCode(s) != TF_OK) return nullptr;
        TF_SetAttrType(desc, "dtype", TF_FLOAT);
        TF_Operation* op = TF_FinishOperation(desc, s);
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Nov 17 00:00:38 GMT 2025
    - 97K bytes
    - Click Count (0)
  3. tensorflow/c/c_api.cc

              InvalidArgument("Unparseable TensorShapeProto at index ", i);
          return;
        }
      }
      desc->node_builder.Attr(attr_name, shapes);
      status->status = absl::OkStatus();
    }
    
    void TF_SetAttrTensor(TF_OperationDescription* desc, const char* attr_name,
                          TF_Tensor* value, TF_Status* status) {
      Tensor t;
      status->status = TF_TensorToTensor(value, &t);
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 102.4K bytes
    - Click Count (0)
Back to Top