Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of about 10,000 for gather (0.28 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        return success();
      }
    
      // Convert gather op to tf.slice and tf.concat
      LogicalResult ConvertGatherOpToSlice(
          mhlo::GatherOp gather_op, ConversionPatternRewriter& rewriter) const {
        Value operand = gather_op.getOperand();
        Value start_indices = gather_op.getStartIndices();
        static const int rank_two = 2;
        // This converts a gather op to multiple slice ops, cap the number of slice
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    				},
    			},
    		},
    	}
    
    	return []runtime.Object{fs, pl}
    }
    
    // gathers and checks the metrics.
    func checkForExpectedMetrics(t *testing.T, expectedMetrics []string) {
    	metricsFamily, err := legacyregistry.DefaultGatherer.Gather()
    	if err != nil {
    		t.Fatalf("Failed to gather metrics %v", err)
    	}
    
    	metrics := map[string]interface{}{}
    	for _, mf := range metricsFamily {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  3. src/internal/diff/diff.go

    	// Using negative numbers now lets us distinguish positive line numbers later.
    	m := make(map[string]int)
    	for _, s := range x {
    		if c := m[s]; c > -2 {
    			m[s] = c - 1
    		}
    	}
    	for _, s := range y {
    		if c := m[s]; c > -8 {
    			m[s] = c - 4
    		}
    	}
    
    	// Now unique strings can be identified by m[s] = -1+-4.
    	//
    	// Gather the indexes of those strings in x and y, building:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/prepare-quantize-dynamic-range.mlir

    // PerTensor-LABEL: QuantizeGatherWeightOnly
    func.func @QuantizeGatherWeightOnly(%arg0: tensor<3xi32>) -> tensor<3x3x3x3xf32> {
      %w = arith.constant dense<1.270000e+02> : tensor<64x3x3x3xf32>
      %emb = "tfl.gather"(%w, %arg0) {axis = 0 : i32, batch_dims = 0 : i32} : (tensor<64x3x3x3xf32>, tensor<3xi32>) -> tensor<3x3x3x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. src/os/types_windows.go

    	path             string
    	vol              uint32
    	idxhi            uint32
    	idxlo            uint32
    	appendNameToPath bool
    }
    
    // newFileStatFromGetFileInformationByHandle calls GetFileInformationByHandle
    // to gather all required information about the file handle h.
    func newFileStatFromGetFileInformationByHandle(path string, h syscall.Handle) (fs *fileStat, err error) {
    	var d syscall.ByHandleFileInformation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_tf_drq.mlir

      parameters[
        {"quantized_ops": ["Gather"]}
      ]
      func.func @GenerateQuantizedFunctionName(${quantized_ops})(
                             %weight : tensor<*xi8>, %input : tensor<*xi32>, %axis : tensor<i32>,
                             %weight_scale : tensor<*xf32>, %weight_zp : tensor<*xi32>) -> tensor<*xf32>
          attributes {tf_quant.quantized_ops = ${quantized_ops}}
      {
        %accum_out = "tf.GatherV2"(%weight, %input, %axis) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 15:43:38 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td

    def AddV2OfNegRight : Pat<
      (TF_AddV2Op:$src $arg0, (TF_NegOp $arg1)), (TF_SubOp:$dest $arg0, $arg1), [],
      [(CopyAttrs $src, $dest)]>;
    
    //===----------------------------------------------------------------------===//
    // Gather op patterns.
    //===----------------------------------------------------------------------===//
    
    class GetI32Attr<int x>: NativeCodeCall<
      "$_builder.getI32IntegerAttr(" # x # ")">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:42:28 UTC 2023
    - 17K bytes
    - Viewed (0)
  8. src/cmd/fix/typecheck.go

    			return nil
    		}()
    		if err != nil {
    			if reportCgoError == nil {
    				fmt.Fprintf(os.Stderr, "go fix: warning: no cgo types: %s\n", err)
    			} else {
    				reportCgoError(err)
    			}
    		}
    	}
    
    	// gather function declarations
    	for _, decl := range f.Decls {
    		fn, ok := decl.(*ast.FuncDecl)
    		if !ok {
    			continue
    		}
    		typecheck1(cfg, fn.Type, typeof, assign)
    		t := typeof[fn.Type]
    		if fn.Recv != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go

    		t.Errorf("expected a total of %d webhook attempts but got: %d", totalAttemptsExpected, attemptsGot)
    	}
    }
    
    func getSingleCounterValueFromRegistry(t *testing.T, r metrics.Gatherer, name string) int {
    	mfs, err := r.Gather()
    	if err != nil {
    		t.Logf("failed to gather local registry metrics: %v", err)
    		return -1
    	}
    
    	for _, mf := range mfs {
    		if mf.Name != nil && *mf.Name == name {
    			mfMetric := mf.GetMetric()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      %0 = "tf.Gather"(%arg0, %arg1) : (tensor<2x3x6xf32>, tensor<4x5xi32>) -> tensor<4x5x3x6xf32>
      func.return %0 : tensor<4x5x3x6xf32>
    
    // CHECK-LABEL:gatherHigherRankIndices
    // CHECK:  "tfl.gather"(%arg0, %arg1) <{axis = 0 : i32, batch_dims = 0 : i32}> : (tensor<2x3x6xf32>, tensor<4x5xi32>) -> tensor<4x5x3x6xf32>
    }
    
    func.func @gatherNdVectorIndices(%arg0 : tensor<3x2x2xf32>, %arg1 : tensor<2xi32>) -> tensor<2xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
Back to top