Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_SetAttrTensor (0.23 sec)

  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);
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 04 05:55:32 UTC 2025
    - 17.8K bytes
    - Viewed (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);
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Mon Nov 17 00:00:38 UTC 2025
    - 97K bytes
    - Viewed (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);
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 04 05:55:32 UTC 2025
    - 102.4K bytes
    - Viewed (0)
  4. RELEASE.md

    *   C API: Renamed `TF_Port` to `TF_Output`.
    *   C API: The caller retains ownership of `TF_Tensor` objects provided to
        `TF_Run`, `TF_SessionRun`, `TF_SetAttrTensor` etc.
    *   Renamed `tf.image.per_image_whitening()` to
        `tf.image.per_image_standardization()`
    *   Move Summary protobuf constructors to `tf.summary` submodule.
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Tue Oct 28 22:27:41 UTC 2025
    - 740.4K bytes
    - Viewed (3)
Back to top