Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DoubleTensor (0.07 sec)

  1. 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