Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for REWRITES (0.23 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

    // 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.
    	rewrites      []rewriteTarget // all the targets for this rewrite.
    }
    
    func (r *rewrite) String() string {
    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

          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
    // LHS transpose permutation must be a NCHW->NHWC permutation.
    template <typename OpT>
    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/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)
  5. 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)
  6. 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`
        and `tf.TPUExecute` operations. `tf._TPUCompileMlir` contains a MLIR module that is
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 10 18:58:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      auto new_results =
          GetValueWithToken(builder, llvm::to_vector(terminator->getOperands()),
                            token, rewritten_operands, flatten_tuple);
      terminator->setOperands(new_results);
    }
    
    // Rewrites a `mhlo.if` op to receive and forward a `mhlo.token`. As If op does
    // not have any operands other than the predicate, hence we implicitly capture
    // the parent token. Also we use the same implicit token for use in the If op's
    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. src/cmd/compile/internal/typecheck/func.go

    	lit.SetImplicit(true)
    
    	n := Expr(lit)
    	if n.Type() == nil {
    		base.FatalfAt(pos, "mkdotargslice: typecheck failed")
    	}
    	return n
    }
    
    // FixVariadicCall rewrites calls to variadic functions to use an
    // explicit ... argument if one is not already present.
    func FixVariadicCall(call *ir.CallExpr) {
    	fntype := call.Fun.Type()
    	if !fntype.IsVariadic() || call.IsDDD {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/gc.go

    			rewriteDir = m.Path + "@" + m.Version + strings.TrimPrefix(importPath, m.Path)
    		} else {
    			rewriteDir = importPath
    		}
    		rewrite += a.Package.Dir + "=>" + rewriteDir + ";"
    	}
    
    	// Add rewrites for overlays. The 'from' and 'to' paths in overlays don't need to have
    	// same basename, so go from the overlay contents file path (passed to the compiler)
    	// to the path the disk path would be rewritten to.
    
    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