Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for dim (0.03 seconds)

  1. tensorflow/c/eager/c_api.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return -1;
      }
    
      int64_t dim = -1;
      status->status = tensorflow::unwrap(h)->Dim(dim_index, &dim);
      return dim;
    }
    
    const char* TFE_TensorHandleDeviceName(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Nov 07 05:55:21 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  2. tensorflow/c/eager/c_api_test.cc

      ASSERT_EQ(num_dims, -1);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    
      TF_SetStatus(status.get(), TF_OK, "");
    
      int dim = TFE_TensorHandleDim(h, 0, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(dim, -1);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    }
    
    TEST(CAPI, TensorHandleDevices) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 94.6K bytes
    - Click Count (0)
  3. tensorflow/c/c_api.cc

        return;
      }
    
      // Rank is greater than 0, so fill in the values, if known, and
      // -1 for unknown values.
      for (int i = 0; i < num_dims; ++i) {
        auto dim = ic->Dim(shape, i);
        int64_t value = -1;
        if (ic->ValueKnown(dim)) {
          value = ic->Value(dim);
        }
        dims[i] = value;
      }
    }
    
    // TF_OperationDescription functions ------------------------------------------
    
    extern "C" {
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 102.4K bytes
    - Click Count (0)
  4. tensorflow/c/c_api_test.cc

    #undef EXPECT_TF_META
    
    TEST(CAPI, TestTensorAligned) {
      int64_t dim = 7;
      size_t tensor_size_bytes = dim * TF_DataTypeSize(TF_FLOAT);
      TF_Tensor* a = TF_AllocateTensor(
          /*dtype=*/TF_FLOAT, /*dims=*/&dim, /*num_dims=*/1,
          /*len=*/tensor_size_bytes);
      float* data = reinterpret_cast<float*>(TF_TensorData(a));
      for (int i = 0; i < dim; ++i) {
        data[i] = 0;
      }
      if (TF_TensorDefaultAlignment() > 0) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 97.3K bytes
    - Click Count (0)
  5. tensorflow/c/eager/custom_device_testutil.cc

      auto dtype = TFE_TensorHandleDataType(t->tensor);
      TFE_CustomDeviceTensorHandleMethods handle_methods;
      handle_methods.num_dims = &LoggedTensorNumDims;
      handle_methods.dim = &LoggedTensorDim;
      handle_methods.deallocator = &LoggedTensorDeallocator;
      return TFE_NewCustomDeviceTensorHandle(context, logging_device_name.c_str(),
                                             dtype, t.release(), handle_methods,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Dec 20 23:30:21 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  6. tensorflow/c/c_api_experimental.cc

          shape.dims = nullptr;
          continue;
        }
        shape.dims = new int64_t[shape.num_dims];
        for (size_t j = 0; j < shape.num_dims; ++j) {
          shape.dims[j] = c.Value(c.Dim(shape_handle, j));
        }
      }
      if (output_shapes != nullptr) *output_shapes = output_shapes_result;
    
      // TODO(bgogul): Set output_resource_shapes_and_types.
    }
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 29.4K bytes
    - Click Count (0)
  7. RELEASE.md

    * `tf.argmax`: `dimension` becomes `axis` * `tf.argmin`: `dimension` becomes
    `axis` * `tf.count_nonzero`: `reduction_indices` becomes `axis` *
    `tf.expand_dims`: `dim` becomes `axis` * `tf.reduce_all`: `reduction_indices`
    becomes `axis` * `tf.reduce_any`: `reduction_indices` becomes `axis` *
    `tf.reduce_join`: `reduction_indices` becomes `axis` * `tf.reduce_logsumexp`:
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 18:31:38 GMT 2026
    - 746.5K bytes
    - Click Count (3)
Back to Top