Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for SizeOf (0.14 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_test.cc

        [[0,0],    *   [[0,0],    =   [[0,0],
         [0,0]]         [0,0]]         [0,0]]
      */
    
      // Build an abstract input tensor.
      int64_t dims[] = {2, 2};  // Matrices will be 2 x 2
      int num_dims = sizeof(dims) / sizeof(dims[0]);
    
      float vals[] = {0.0f, 0.0f, 0.0f, 0.0f};
      TFE_Context* eager_ctx = TF_ExecutionContextGetTFEContext(ctx, status.get());
      TFE_TensorHandle* t =
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      }
    
      TF_Tensor* FloatTensor2x2(const float* values) {
        const int64_t dims[2] = {2, 2};
        TF_Tensor* t = TF_AllocateTensor(TF_FLOAT, dims, 2, sizeof(float) * 4);
        memcpy(TF_TensorData(t), values, sizeof(float) * 4);
        return t;
      }
    
      TF_Operation* FloatConst2x2(TF_Graph* graph, TF_Status* s,
                                  const float* values, const char* name) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_distributed_test.cc

      TF_Tensor* t = TFE_TensorHandleResolve(retvals[0], status);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteTensorHandle(retvals[0]);
      float sum = 0;
      EXPECT_EQ(sizeof(sum), TF_TensorByteSize(t));
      memcpy(&sum, TF_TensorData(t), TF_TensorByteSize(t));
      TF_DeleteTensor(t);
      EXPECT_EQ(sum, 6.0);
    
      TFE_DeleteTensorHandle(h0);
      TFE_DeleteTensorHandle(h1);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

            }
            return response.getStatus().getStatus();
        }
    
        public long calculateDocumentSize(final Map<String, Object> dataMap) {
            return MemoryUtil.sizeOf(dataMap);
        }
    
        public void setMaxRetryCount(final int maxRetryCount) {
            this.maxRetryCount = maxRetryCount;
        }
    
        public void setDefaultRowSize(final int defaultRowSize) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental.cc

      DCHECK(num_dims >= 0) << "Number of dimensions cannot be negative!";
      shape.num_dims = num_dims;
      shape.dims = new int64_t[num_dims];
      memcpy(shape.dims, dims, sizeof(int64_t) * num_dims);
    }
    
    void TF_ShapeAndTypeListSetUnknownShape(TF_ShapeAndTypeList* shape_list,
                                            int index) {
      DCHECK(index >= 0 && index < shape_list->num_items);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.h

        std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> tensor(
            TF_NewTensor(
                datatype_enum, /*dims=*/nullptr, /*num_dims=*/0,
                device_value.release(), sizeof(DataType),
                [](void* data, size_t, void* arg) {
                  delete reinterpret_cast<DataType*>(data);
                },
                nullptr),
            TF_DeleteTensor);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_cluster_test.cc

      TF_Tensor* t = TFE_TensorHandleResolve(handle, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      std::unique_ptr<float[]> actual_values(new float[expected_values.size()]);
      EXPECT_EQ(sizeof(float) * expected_values.size(), TF_TensorByteSize(t));
      memcpy(actual_values.get(), TF_TensorData(t), TF_TensorByteSize(t));
      TF_DeleteTensor(t);
    
      for (int i = 0; i < expected_values.size(); i++) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    a <a href="#Constant_expressions">constant expression</a>,
    a <a href="#Conversions">conversion</a> with a result that is a constant, or
    the result value of some built-in functions such as
    <code>unsafe.Sizeof</code> applied to any value,
    <code>cap</code> or <code>len</code> applied to
    <a href="#Length_and_capacity">some expressions</a>,
    <code>real</code> and <code>imag</code> applied to a complex constant
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  9. tensorflow/c/c_api.cc

      GraphImportGraphDefLocked(graph, def, options, &results, status);
      DCHECK_EQ(results.return_tensors.size(), num_return_outputs);
      memcpy(return_outputs, results.return_tensors.data(),
             num_return_outputs * sizeof(TF_Output));
    }
    
    void TF_GraphImportGraphDef(TF_Graph* graph, const TF_Buffer* graph_def,
                                const TF_ImportGraphDefOptions* options,
                                TF_Status* status) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top