Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 440 for rewrites (0.14 sec)

  1. tensorflow/compiler/aot/codegen.cc

          count *= shape.dimensions(dim);
        }
      }
      rewrites->push_back({"{{I}}", absl::StrCat(i)});
      rewrites->push_back({"{{TYPE}}", type});
      rewrites->push_back({"{{DIM_VARS}}", absl::StrJoin(dim_vars, ", ")});
      rewrites->push_back({"{{DIM_SIZES}}", dim_sizes});
      rewrites->push_back({"{{INDICES}}", indices});
      rewrites->push_back({"{{COUNT}}", absl::StrCat(count)});
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/loopreschedchecks.go

    // a rewriteTarget is a value-argindex pair indicating
    // where a rewrite is applied.  Note that this is for values,
    // not for block controls, because block controls are not targets
    // for the rewrites performed in inserting rescheduling checks.
    type rewriteTarget struct {
    	v *Value
    	i int
    }
    
    type rewrite struct {
    	before, after *Value          // before is the expected value before rewrite, after is the new value installed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

                                  PatternRewriter& rewriter) {
      return rewriter.create<TransposeOp>(
          input.getLoc(), input, rewriter.getDenseI64ArrayAttr(permutation));
    }
    
    // Defers the transpose of the left-hand side (LHS) to the right-hand side and
    // the result of a binary operation. In detail, this rewrites the
    // `op(transpose(%rhs), %lhs)` to `transpose(op(%rhs, transpose(%lhs)))`. The
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.td

      let dependentDialects = ["tf_device::TensorFlowDeviceDialect"];
    }
    
    def XlaRewritePass : Pass<"tf-xla-rewrite", "mlir::ModuleOp"> {
      let summary = "Rewrites partition calls into Xla launch ops to make the attached function run on XLA.";
    
      let description = [{
        This pass rewrites `tf.PartitionedCall` and `tf.StatefulPartitionedCall`
        operations with `_xla_compile_device_type` attribute in a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/runtime_passes.td

    ==============================================================================*/
    
    include "mlir/Pass/PassBase.td"
    
    def TPURewritePass : Pass<"tf-tpu-rewrite", "mlir::ModuleOp"> {
      let summary = "Rewrites a `tf_device.cluster_func` on TPUs into TPU runtime operations.";
    
      let description = [{
        This pass rewrites a `tf_device.cluster_func` operation into a sequence of `tf._TPUCompileMlir`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 10 18:58:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/rangefunc/rewrite.go

    // license that can be found in the LICENSE file.
    
    /*
    Package rangefunc rewrites range-over-func to code that doesn't use range-over-funcs.
    Rewriting the construct in the front end, before noder, means the functions generated during
    the rewrite are available in a noder-generated representation for inlining by the back end.
    
    # Theory of Operation
    
    The basic idea is to rewrite
    
    	for x := range f {
    		...
    	}
    
    into
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

      pm.addPass(mlir::createInlinerPass());
      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
      pm.addPass(mlir::quant::CreateCastBf16OpsToF32Pass());
    
      // Optimizes the graph via cleanups, merges, rewrites, constant folding,
      // and edge case handling where possible.
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::TF::CreateDropWhileShapeInvariantPass());
      pm.addNestedPass<mlir::func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      region.front().eraseArguments(0, region.getNumArguments());
    }
    
    // Rewrites an `mhlo.if` op or its region. If `region_idx` is not set, the op
    // operands and results are rewritten. If `region_idx` is set, region
    // `region_idx` is rewritten to take in and return an additional token. Returns
    // true if the op or its region was rewritten.
    bool ProcessRegionIfOp(OpBuilder& builder, IfOp region_if,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.h

      // graph rewrites. Returns false if the inference_type is DT_FLOAT or
      // `weight_quantization` flag is set.
      bool RunPropagationAndRewriteQuantizationPasses() const {
        return inference_type != tensorflow::DT_FLOAT && !weight_quantization;
      }
    
      // TODO: b/202075505 - make implicit weight type clearer
      // Whether run the passes and graph rewrites for dynamic range quantization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 10:16:19 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/gc.go

    				}
    			} else {
    				// Non-overlay Go files are covered by the a.Package.Dir rewrite rule above.
    			}
    		}
    	}
    	if hasCgoOverlay {
    		rewrite += overlayNonGoRewrites
    	}
    	rewrite += objdir + "=>"
    
    	return rewrite
    }
    
    func asmArgs(a *Action, p *load.Package) []any {
    	// Add -I pkg/GOOS_GOARCH so #include "textflag.h" works in .s files.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top