Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 172 for rewrite (0.31 sec)

  1. doc/go_mem.html

    <p>
    Note that if there are no read-write or write-write data races on memory location <i>x</i>,
    then any read <i>r</i> on <i>x</i> has only one possible <i>W</i>(<i>r</i>):
    the single <i>w</i> that immediately precedes it in the happens before order.
    </p>
    
    <p>
    More generally, it can be shown that any Go program that is data-race-free,
    meaning it has no program executions with read-write or write-write data races,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

        const Type quantized_type =
            quant_type.castFromExpressedType(expressed_type);
    
        rewriter.setInsertionPointAfter(op);
        auto q = rewriter.create<quantfork::QuantizeCastOp>(
            op->getLoc(), quantized_type, op->getResult(0));
        auto dq = rewriter.create<quantfork::DequantizeCastOp>(op->getLoc(),
                                                               expressed_type, q);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/build_xla_ops_pass.cc

        TF_RETURN_IF_ERROR(root.status());
    
        // We already have a TensorFlow function call into the cluster -- the
        // original node we set out to rewrite.  We just wire in the correct control
        // deps and we're done.
        RemoveAllIncomingControlEdges(g, n);
        Operation inverse_predicate_as_control =
            DataToControl(root, inverse_predicated_compilation_key);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

          /*attr_def=*/{}, /*node_def=*/{{{"out"}, "Identity", {"in"}}},
          /*ret_def=*/{{"out", "out:output:0"}});
      *fdef_lib.add_function() = std::move(func);
      return fdef_lib;
    }
    
    // This tests a rewrite that only makes sense and is active in a CUDA-enabled
    // build.  Specifically we check that we insert an IdentityN op to avoid extra
    // device-to-host copies.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

        EmptyPatternRewriter pattern_rewriter(op_builder);
    
        LogicalResult result =
            Tf2XlaRewriter::RewriteOp(&op, pattern_rewriter,
                                      /*device_type=*/"XLA_CPU_JIT");
        if (!result.succeeded()) {
          return tsl::errors::Internal("Failed to rewrite op");
        }
    
        return absl::OkStatus();
      }
    
      Status LegalizeModule(std::string module_string = kMlirModuleStr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. 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)
  7. 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 (0)
  8. 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)
  9. 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)
  10. 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)
Back to top