Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 204 for dims2 (0.06 sec)

  1. tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc

      // Note that if shape is unknown rank, shape.dim_sizes() will be empty, and
      // shape.dims() will be -1.
      absl::InlinedVector<int64_t, 4UL> dim_sizes = shape.dim_sizes();
      TF_RETURN_IF_ERROR(varhandle_op->SetAttrShape(
          "shape", reinterpret_cast<const int64_t*>(dim_sizes.data()),
          shape.dims()));
      TF_RETURN_IF_ERROR(varhandle_op->SetAttrString("container", "", 0));
      TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 11:28:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. hack/OWNERS

      - liggitt
      - mikedanese
      - pohly
      - SataQiu
      - smarterclayton
      - spiffxp
      - sttts
      - thockin
      - wojtek-t
    approvers:
      - bentheelder
      - cblecker
      - dchen1107
      - deads2k
      - dims # for local-up-cluster related files
      - enj # for sig-auth related stuff like cert testdata
      - liggitt
      - mikedanese
      - pohly # for logging and linting
      - pwittrock
      - SataQiu
      - smarterclayton
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 11 16:43:38 UTC 2023
    - 777 bytes
    - Viewed (0)
  3. src/debug/dwarf/type.go

    					} else if len(dims) == 0 {
    						count = -1 // As in x[].
    					}
    				}
    				dims = append(dims, count)
    			case TagEnumerationType:
    				err = DecodeError{name, kid.Offset, "cannot handle enumeration type as array bound"}
    				goto Error
    			}
    		}
    		if len(dims) == 0 {
    			// LLVM generates this for x[].
    			dims = []int64{-1}
    		}
    
    		t.Count = dims[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients.cc

      if (num_dims < 0) {
        proto.set_unknown_rank(true);
      } else {
        for (int d = 0; d < num_dims; ++d) {
          proto.add_dim()->set_size(dims[d]);
        }
      }
    
      forward_op_->attrs.Set(attr_name, proto);
      return op_->SetAttrShape(attr_name, dims, num_dims);
    }
    Status SetAttrFunction(AbstractOperation* op_, const char* attr_name,
                           const AbstractOperation* value,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/constant_loading_test.cc

      EXPECT_EQ(revived_tensor->Type(), expected.dtype());
      EXPECT_EQ(revived_tensor->NumElements(), expected.NumElements());
      EXPECT_EQ(revived_tensor->NumDims(), expected.dims());
      for (int i = 0; i < expected.dims(); ++i) {
        EXPECT_EQ(revived_tensor->Dim(i), expected.dim_size(i));
      }
    
      testing::CheckBufferDataIsEqual(expected.dtype(), expected.NumElements(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/shape_inference.cc

      // The default is already unknown
      if (!context->RankKnown(handle)) return absl::OkStatus();
    
      std::vector<int64_t> dims(context->Rank(handle));
      for (int32_t i = 0, end = dims.size(); i < end; ++i) {
        dims[i] = context->Value(context->Dim(handle, i));
      }
      return PartialTensorShape::MakePartialShape(dims.data(), dims.size(), shape);
    }
    
    Status PropagateShapes(Graph* graph,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. tensorflow/c/eager/unified_api_testutil.h

    // Return a tensor handle with given type, values and dimensions.
    template <class T, TF_DataType datatype>
    Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data,
                                    const int64_t* dims, int num_dims,
                                    AbstractTensorHandle** tensor) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_Context* eager_ctx =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients_internal.h

    Status SetAttrType(AbstractOperation*, const char* attr_name, DataType value,
                       ForwardOperation*);
    Status SetAttrShape(AbstractOperation*, const char* attr_name,
                        const int64_t* dims, const int num_dims, ForwardOperation*);
    Status SetAttrFunction(AbstractOperation*, const char* attr_name,
                           const AbstractOperation* value, ForwardOperation*);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Oct 24 11:27:35 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-tfl-stablehlo-broadcast.mlir

      func.return %0 : tensor<1x2x2xi32>
      }
    }
    
    // CHECK:      module {
    // CHECK-NEXT:  func @main(%arg0: tensor<1x2xi32>) -> tensor<1x2x2xi32> {
    // CHECK-NEXT:  %0 = stablehlo.broadcast_in_dim %arg0, dims = [1, 2] : (tensor<1x2xi32>) -> tensor<1x2x2xi32>
    // CHECK-NEXT:  return %0 : tensor<1x2x2xi32>
    // CHECK-NEXT:  }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 16 05:09:09 UTC 2022
    - 704 bytes
    - Viewed (0)
  10. tensorflow/cc/experimental/base/public/tensor.h

      Tensor& operator=(Tensor&&) = default;
    
      // Returns the number of dimensions in the tensor. Can be -1, which represents
      // unknown rank.
      int dims() const;
    
      // Returns the number of elements in dimension `d`.
      // REQUIRES: `0 <= d < dims()`
      int64_t dim_size(int d) const;
    
      // Returns a pointer to the underlying data buffer.
      void* data() const;
    
      // Returns the data type of the tensor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 28 20:10:33 UTC 2020
    - 6.3K bytes
    - Viewed (0)
Back to top