Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Senior (0.49 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TF_Tensor* result_tensor = TFE_TensorHandleResolve(result_t, status.get());
    
      // Copy Tensor data into an array.
      float result_data[4] = {0};
      memcpy(&result_data[0], TF_TensorData(result_tensor),
             TF_TensorByteSize(result_tensor));
    
      int data_len = 4;  // length of result_data
      for (int i = 0; i < data_len; i++) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental_test.cc

    }
    TEST(CAPI, Executor_MatMul_CPU) { Executor_MatMul_CPU(false); }
    TEST(CAPI, Executor_MatMul_CPUAsync) { Executor_MatMul_CPU(true); }
    
    void Deleter(void* data, size_t unused, void* tensor_handle) {
      TFE_DeleteTensorHandle(static_cast<TFE_TensorHandle*>(tensor_handle));
    }
    
    TEST(CAPI, TensorHandleOnDeviceMemory) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  3. tensorflow/c/eager/c_api.h

                                                       size_t proto_len,
                                                       TF_Status* status);
    
    // A handle to a tensor on a device.
    //
    // Like a TF_Tensor, a TFE_TensorHandle refers to a tensor with a value, shape,
    // type etc. Unlike a TF_Tensor, a TFE_TensorHandle may refer to such tensors
    // placed in the memory of different devices or remote address spaces.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  4. tensorflow/c/eager/dlpack.cc

      DLManagedTensor* dlm_tensor = &tf_dlm_tensor_ctx->tensor;
      dlm_tensor->manager_ctx = tf_dlm_tensor_ctx;
      dlm_tensor->deleter = &DLManagedTensorDeleter;
      dlm_tensor->dl_tensor.device = tf_dlm_context;
      int ndim = tensor->dims();
      dlm_tensor->dl_tensor.ndim = ndim;
      dlm_tensor->dl_tensor.data = tf_dlm_data;
      dlm_tensor->dl_tensor.dtype = tf_dlm_type;
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients.cc

      std::vector<int64_t> tensor_ids(tensors.size());
      std::vector<tensorflow::DataType> tensor_dtypes(tensors.size());
      for (int i = 0; i < tensors.size(); i++) {
        tensor_ids[i] = ToId(tensors[i]);
        tensor_dtypes[i] = tensors[i]->DataType();
      }
      return GradientTape::ShouldRecord(tensor_ids, tensor_dtypes);
    }
    void Tape::DeleteTrace(const AbstractTensorHandle* t) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/c/c_test_util.cc

                              const char* name) {
      unique_tensor_ptr tensor(Int32Tensor(v), TF_DeleteTensor);
      return Const(tensor.get(), graph, s, name);
    }
    
    TF_Operation* ScalarConst(double v, TF_Graph* graph, TF_Status* s,
                              const char* name) {
      unique_tensor_ptr tensor(DoubleTensor(v), TF_DeleteTensor);
      return Const(tensor.get(), graph, s, name);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  7. tensorflow/c/BUILD

            ],
        }),
    )
    
    tf_cuda_library(
        name = "tf_tensor_internal",
        hdrs = [
            "tf_tensor.h",
            "tf_tensor_helper.h",
            "tf_tensor_internal.h",
        ],
        visibility = ["//tensorflow:internal"],
        deps = [
            ":c_api_macros",
            ":tensor_interface",
            ":tf_datatype",
            ":tf_status",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 18:00:18 GMT 2024
    - 30.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.h

      int version = TFE_CUSTOM_DEVICE_VERSION;
      // Method to copy a tensor to the custom device.
      TFE_TensorHandle* (*copy_tensor_to_device)(TFE_Context* context,
                                                 TFE_TensorHandle* tensor,
                                                 TF_Status* status,
                                                 void* device_info);
    
      // Method to copy a tensor from the custom device to a target device.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler.cc

      const std::vector<tensorflow::OpInfo::TensorProperties>& tensor_properties =
          reinterpret_cast<tensorflow::grappler::GraphProperties*>(graph_properties)
              ->GetInputProperties(name);
      const int len =
          std::min(num_values, static_cast<int>(tensor_properties.size()));
      for (int i = 0; i < len; ++i) {
        absl::Status s =
            tensorflow::MessageToBuffer(tensor_properties[i], properties[i]);
        if (!s.ok()) {
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  10. tensorflow/c/experimental/grappler/grappler.h

    // This may cause incorrectness in graph analyses, but is useful for simulation
    // or scheduling.
    // If include_input_tensor_values is true, the values of constant
    // tensors will included in the input properties.
    // If include_output_tensor_values is true, the values of constant tensors will
    // be included in the output properties.
    TF_CAPI_EXPORT extern void TF_InferStatically(
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
Back to top