Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DoubleTensor (0.09 sec)

  1. tensorflow/c/c_test_util.h

                           const int32_t* values);
    
    // Create 1 dimensional tensor with values from `values`
    TF_Tensor* Int32Tensor(const std::vector<int32_t>& values);
    
    TF_Tensor* Int32Tensor(int32_t v);
    
    TF_Tensor* DoubleTensor(double v);
    
    TF_Tensor* FloatTensor(float v);
    
    TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s,
                              const char* name = "feed",
                              TF_DataType dtype = TF_INT32,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 09 01:06:53 UTC 2018
    - 6K bytes
    - Viewed (0)
  2. tensorflow/c/c_test_util.cc

      int32_t* values = new int32_t[1];
      values[0] = v;
      return TF_NewTensor(TF_INT32, nullptr, 0, values, num_bytes,
                          &Int32Deallocator, nullptr);
    }
    
    TF_Tensor* DoubleTensor(double v) {
      const int num_bytes = sizeof(double);
      double* values = new double[1];
      values[0] = v;
      return TF_NewTensor(TF_DOUBLE, nullptr, 0, values, num_bytes,
                          &DoubleDeallocator, nullptr);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
Back to top