Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for rewrite (0.16 sec)

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

          return failure();
        }
    
        return success();
      }
    
      void rewrite(stablehlo::UniformDequantizeOp op,
                   PatternRewriter& rewriter) const override {
        rewriter.replaceOpWithNewOp<TFL::DequantizeOp>(
            op, /*resultTypes=*/op->getResultTypes(), /*input=*/op.getOperand());
      }
    };
    
    // Rewrites `stablehlo.dot_general` to `tfl.fully_connected` or
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

          AddHostComputeKeyPlaceholder(xla_cluster_name, &host_graph));
    
      // Step 2: rewrite cond function.
      TF_RETURN_IF_ERROR(RewriteHostWhileLoopCond(
          cond_host_func_name, while_node_name, host_transfer_key,
          xla_cluster_attr_name, xla_cluster_name, outside_compilation_attr_name,
          outside_compilation_name, fld));
    
      // Step 3: rewrite body function.
      TF_RETURN_IF_ERROR(RewriteHostWhileLoopBody(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  3. pkg/config/validation/validation.go

    	return errs
    }
    
    func validateHTTPRewrite(rewrite *networking.HTTPRewrite) error {
    	if rewrite == nil {
    		return nil
    	}
    	if rewrite.Uri != "" && rewrite.UriRegexRewrite != nil {
    		return errors.New("rewrite may only contain one of URI or UriRegexRewrite")
    	}
    	if rewrite.Uri == "" && rewrite.UriRegexRewrite == nil && rewrite.Authority == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      auto rewrite = [&](auto op_type) {
        auto empty = rewriter.getStringAttr("");
        ReplaceTfOpWithNewOp<typename decltype(op_type)::CallOp>(
            rewriter, op, op.getResultTypes(), op.getInput(), func,
            /*config=*/empty, /*config_proto=*/empty, /*executor_type=*/empty);
      };
    
      if (op.getIsStateless())
        rewrite(CallOpType<PartitionedCallOp>{});
      else
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize.cc

            loc, GetI64ElementsAttr(new_broadcast_shape, &rewriter));
    
        auto new_broadcast_to_op = rewriter.create<TFL::BroadcastToOp>(
            loc, RankedTensorType::get(new_broadcast_shape, rewriter.getF32Type()),
            new_inner_reshape_op.getOutput(), new_broadcast_shape_value);
    
        // Create a new broadcast_op to replace the old broadcast_op.
        rewriter.replaceOp(tfl_broadcast_to_op, new_broadcast_to_op.getResult());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  6. pkg/config/validation/validation_test.go

    			in: &networking.RegexRewrite{
    				Match:   "^/service/([^/]+)(/.*)$",
    				Rewrite: `\2/instance/\1`,
    			},
    			valid: true,
    		},
    		{
    			name: "uriRegexRewrite missing match",
    			in: &networking.RegexRewrite{
    				Rewrite: `\2/instance/\1`,
    			},
    			valid: false,
    		},
    		{
    			name: "uriRegexRewrite missing rewrite",
    			in: &networking.RegexRewrite{
    				Match: "^/service/([^/]+)(/.*)$",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/generic.rules

    // Divisibility checks x%c == 0 convert to multiply and rotate.
    // Note, x%c == 0 is rewritten as x == c*(x/c) during the opt pass
    // where (x/c) is performed using multiplication with magic constants.
    // To rewrite x%c == 0 requires pattern matching the rewritten expression
    // and checking that the division by the same constant wasn't already calculated.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/exec.go

    	// See golang.org/issue/22220.
    	// We still call updateBuildID to update a.buildID, which is important
    	// for test result caching, but passing rewrite=false (final arg)
    	// means we don't actually rewrite the binary, nor store the
    	// result into the cache. That's probably a net win:
    	// less cache space wasted on large binaries we are not likely to
    	// need again. (On the other hand it does make repeated go test slower.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

              output_ty.getRank(), rewriter.getIntegerType(32));
          shape_attr = DenseIntElementsAttr::get(output_int_type, output_shape);
        }
    
        auto shape = rewriter.create<ConstOp>(pack_op.getLoc(), shape_attr);
    
        // TODO(b/173622615): Remove after fixed.
        ReplaceTfOpWithNewOp<ReshapeOp>(rewriter, pack_op, output_ty,
                                        pack_op.getOperand(0), shape);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  10. tests/integration/pilot/common/routing.go

    				},
    			},
    		},
    	})
    	t.RunTraffic(TrafficTestCase{
    		name: "rewrite uri",
    		config: `
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: default
    spec:
      hosts:
        - {{ .dstSvc }}
      http:
      - match:
        - uri:
            exact: /foo
        rewrite:
          uri: /new/path
        route:
        - destination:
            host: {{ .dstSvc }}`,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
Back to top