Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TensorShape (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tensorflow/c/eager/gradients.cc

                              ForwardOperation* forward_op_) {
      if (num_dims > TensorShape::MaxDimensions()) {
        return absl::InvalidArgumentError(
            absl::StrCat("Value specified for `", attr_name, "` has ", num_dims,
                         " dimensions which is over the limit of ",
                         TensorShape::MaxDimensions(), "."));
      }
      TensorShapeProto proto;
      if (num_dims < 0) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Tue Feb 24 06:18:31 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  2. tensorflow/c/c_api_test.cc

      absl::Status status;
      for (const std::vector<int64_t>& dims :
           std::vector<std::vector<int64_t>>{{n}, {1, n}, {n, 1}, {n / 2, 2}}) {
        // Create C++ Tensor
        Tensor src(tensorflow::DT_STRING, TensorShape(dims));
        for (int64_t i = 0; i < src.NumElements(); ++i) {
          src.flat<tstring>()(i) = data[i];
        }
        TF_Tensor* dst = TF_TensorFromTensor(src, &status);
        ASSERT_TRUE(status.ok()) << status.message();
    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)
Back to Top