Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 149 for indices (0.13 sec)

  1. src/index/suffixarray/suffixarray.go

    		// indices in the first place (if it returned fewer than that then
    		// there cannot be more).
    		for n1 := n; ; n1 += 2 * (n - len(result)) /* overflow ok */ {
    			indices := x.Lookup(lit, n1)
    			if len(indices) == 0 {
    				return
    			}
    			slices.Sort(indices)
    			pairs := make([]int, 2*len(indices))
    			result = make([][]int, len(indices))
    			count := 0
    			prev := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/typeparams/common.go

    		return e.X, e.Lbrack, e.Indices, e.Rbrack
    	}
    	return nil, token.NoPos, nil, token.NoPos
    }
    
    // PackIndexExpr returns an *ast.IndexExpr or *ast.IndexListExpr, depending on
    // the cardinality of indices. Calling PackIndexExpr with len(indices) == 0
    // will panic.
    func PackIndexExpr(x ast.Expr, lbrack token.Pos, indices []ast.Expr, rbrack token.Pos) ast.Expr {
    	switch len(indices) {
    	case 0:
    		panic("empty indices")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

    namespace {
    
    // Returns contiguous offset (address) of the position represented by `indices`
    // in a `shape` shaped tensor. Assumes row-major order. `indices` and `shape`
    // should have the same size.
    // Example: Index (2, 3) of a (4, 5)-shaped tensor has the contiguous offset of
    // 2 * 5 + 3 = 13.
    int64_t GetContiguousOffset(const ArrayRef<int64_t> indices,
                                const ArrayRef<int64_t> shape) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/decompose_resource_op.mlir

    // CHECK-NEXT: tfrt.return [[out_chain]], [[res]] : !tfrt.chain, !tfrt_fallback.tf_tensor
    func.func @gather(%indices: tensor<?xi32>,
                 %resource: tensor<*x!tf_type.resource>) -> tensor<*xi32> {
      %0 = "tf.ResourceGather"(%resource, %indices) {batch_dims = 0 : i64, device = "/device:CPU:0", validate_indices = true}: (tensor<*x!tf_type.resource>, tensor<?xi32>) -> (tensor<*xi32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc

        }
      }
      return resource_vec;
    }
    
    LogicalResult _TfrtGetResourceOp::verify() {
      _TfrtGetResourceOp get_resource_op = *this;
      // The sizes of indices, shared_name and container must be equal.
      int32_t indices_size =
          get_resource_op->getAttrOfType<mlir::ArrayAttr>("indices").size();
      int32_t shared_name_size =
          get_resource_op->getAttrOfType<mlir::ArrayAttr>("shared_name").size();
      int32_t container_size =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

      if (!ranked_ty) return UnrankedTensorType::get(element_ty);
      int64_t rank = ranked_ty.getRank();
    
      DenseIntElementsAttr indices;
      if (!matchPattern(reduction_indices, m_Constant(&indices))) {
        // Output type is unranked if reduction indices are not constant and reduced
        // dimensions are not kept.
        if (!keep_dims.getValue()) return UnrankedTensorType::get(element_ty);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/gpu_ops.td

      let description = [{
        The op compiles and executes a GPU cluster function.
    
        func_name is the name of the function to be executed on GPU.
        resource_indices are the indices of inputs that are resources.
        used_output_indices are the indices of outputs that have users.
    
        Example:
          %results = gpurt.compile_and_execute {func_name = "xla_func_0", resource_indices = [1] ...}
      }];
    
      let arguments = (ins
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/fallback.mlir

      // CHECK: [[ch3:%.*]], [[results:%.*]]:2 = tfrt_fallback_async.get_resource [[ready_ch]] {device = "/device:CPU:0", indices = [0, 1]}
      // CHECK: tfrt_fallback_async.executeop key({{.*}}) cost({{.*}}) device("/device:CPU:0") "tf.MatMul"([[results]]#0, [[results]]#1)
      %a, %b = "tf._TfrtGetResource"() {device = "/device:CPU:0", indices = [0, 1], shared_name = ["", ""], container = ["", ""]} : () -> (tensor<3x1xf32>, tensor<1x3xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/ir/tfl_op_interfaces.td

        Stateful operands correspond to TF's variables semantics. An op that has 1
        or more stateful operands is a stateful op.
      }];
    
      let methods = [
        InterfaceMethod<
          [{Returns the indices of stateful operands.}],
          "std::vector<int>", "GetStatefulOperands", (ins)
        >,
      ];
    }
    
    //===----------------------------------------------------------------------===//
    // TFL op interface for sparse operands.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. src/net/dnsconfig.go

    	trustAD       bool          // add AD flag to queries
    	noReload      bool          // do not check for config file updates
    }
    
    // serverOffset returns an offset that can be used to determine
    // indices of servers in c.servers when making queries.
    // When the rotate option is enabled, this offset increases.
    // Otherwise it is always 0.
    func (c *dnsConfig) serverOffset() uint32 {
    	if c.rotate {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top