- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 326 for rewrite (1.07 sec)
-
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) -
src/cmd/compile/internal/walk/order.go
"cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/internal/objabi" "cmd/internal/src" ) // Rewrite tree to use separate statements to enforce // order of evaluation. Makes walk easier, because it // can (after this runs) reorder at will within an expression. // // Rewrite m[k] op= r into m[k] = m[k] op r if op is / or %. // // Introduce temporaries as needed by runtime routines.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc
// runs, embedding attributes are stripped and the sequencing pass will have // no effect. If the pipelining pass doesn't run, embedding attributes are // preserved and the sequencing rewrite will trigger. pm.addPass(mlir::TFDevice::CreateEmbeddingPipeliningPass()); pm.addPass(mlir::TFDevice::CreateEmbeddingSequencingPass()); pm.addPass(tensorflow::tf2xla::internal::CreateTPUClusterFormationPass(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 16:09:14 UTC 2024 - 11.2K bytes - Viewed (1) -
src/cmd/go/internal/work/shell.go
} } out := string(cmdOut) if !strings.HasSuffix(out, "\n") { out = out + "\n" } // Replace workDir with $WORK out = replacePrefix(out, sh.workDir, "$WORK") // Rewrite mentions of dir with a relative path to dir // when the relative path is shorter. for { // Note that dir starts out long, something like // /foo/bar/baz/root/a // The target string to be reduced is something like
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h
// Compiles a TensorFlow Graph (already converted to MLIR, imported with // tf_executor dialect still present) into XLA HLO, generates all accompanying // metadata and stores them in CompilationResult. This will rewrite arguments // and run the TensorFlow standard pipeline prior to invoking // `CompileMlirToXlaHlo`. ABSL_DEPRECATED("Use v2/legalize_tf.h::LegalizeMlirToHlo instead.") Status CompileGraphToXlaHlo(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/value.go
func (v *Value) resetArgs() { for _, a := range v.Args { a.Uses-- } v.argstorage[0] = nil v.argstorage[1] = nil v.argstorage[2] = nil v.Args = v.argstorage[:0] } // reset is called from most rewrite rules. // Allowing it to be inlined increases the size // of cmd/compile by almost 10%, and slows it down. // //go:noinline func (v *Value) reset(op Op) { if v.InCache { v.Block.Func.unCache(v) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:40:22 UTC 2024 - 16.7K bytes - Viewed (0) -
hack/golangci.yaml
text: use a function call in (Eventually|Consistently) # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507012435 - linters: - gocritic text: "ifElseChain: rewrite if-else to switch statement" # Only packages listed here opt into the strict "exported symbols must be documented". #
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 12:10:09 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
// Using the resource to operations map, it adds (1) a control dependency // from chain_src to all the operations that read/write to a resource of the // equivalence class, and (2) a control dependency from all the operations that // read/write to a resource of the class to the chain_sink operation. void ChainResourceOps( func::FuncOp func, ResourceToOpsMapTy& chain_resource_to_ops_map,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/prove.go
// TODO: if both start and end are constants we should rewrite such that the comparison // is against zero and nxt is ++ or -- operation // That means: // for i := 2; i < 11; i += 2 { // should be rewritten to: // for i := 5; 0 < i; i-- { continue } if end.Block == ind.Block { // we can't rewrite loops where the condition depends on the loop body
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:30:21 UTC 2024 - 48.9K bytes - Viewed (0)