Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 146 for REWRITES (0.1 sec)

  1. tensorflow/compiler/jit/xla_compile_on_demand_op.h

    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/lib/core/status.h"
    
    namespace tensorflow {
    
    // An OpKernel that compiles an op to an XLA computation and runs it. Unlike
    // XlaLaunch this doesn't rely on any rewrites of the graphdef - it will run a
    // vanilla TensorFlow op as long as the bridge supports it.
    class XlaCompileOnDemandOp : public OpKernel {
     public:
      explicit XlaCompileOnDemandOp(OpKernelConstruction* ctx)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/convert_launch_func_to_tf_call.cc

    namespace mlir {
    namespace TFDevice {
    
    namespace {
    
    #define GEN_PASS_DEF_CONVERTLAUNCHFUNCTOTFCALLPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    // Rewrites tf_device::LaunchFuncOp into TF::PartitionedCallOp.
    struct ConvertLaunchFuncToTFCallPass
        : public impl::ConvertLaunchFuncToTFCallPassBase<
              ConvertLaunchFuncToTFCallPass> {
      void runOnOperation() override;
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 21:08:09 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.h

    #include "tensorflow/core/common_runtime/optimization_registry.h"
    
    namespace tensorflow {
    
    // Increases the amount of "dynamism" representable by XLA clusters by rewriting
    // the TensorFlow graph.  This pass does the following rewrites:
    //
    // Slice
    // -----
    //
    //   Slice(op, begin, size <must be constant>) =>
    //     Slice(op, begin, actual_size(op.shape(), size, begin));
    //       _XlaCompileTimeConstantInputs={2}
    //
    // where
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 26 21:01:34 UTC 2018
    - 2.2K 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. samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java

    import okhttp3.Cache;
    import okhttp3.Interceptor;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class RewriteResponseCacheControl {
      /** Dangerous interceptor that rewrites the server's cache-control header. */
      private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = chain -> {
        Response originalResponse = chain.proceed(chain.request());
        return originalResponse.newBuilder()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                FindUserOfType<TFL::QuantizeOp>(op) != nullptr);
      }
    };
    
    // Rewrites `stablehlo.convolution` into fused `tfl.conv_2d`.
    // If available, fuse bias and activation adjacent to `stablehlo.convolution`.
    // This RewritePattern rewrites both the following into `tfl.conv_2d` op:
    //
    // StableHLO Quantizer output:
    //   * input: per-tensor qi8
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/jit_compilation_pass_registration.cc

    #include "tensorflow/compiler/jit/report_clustering_info_pass.h"
    #include "tensorflow/core/common_runtime/optimization_registry.h"
    
    namespace tensorflow {
    
    // PRE_PLACEMENT passes:
    
    // EncapsulateXlaComputationsPass rewrites computations generated by the
    // xla.compile() Python code into XlaLaunch nodes.
    REGISTER_OPTIMIZATION(OptimizationPassRegistry::PRE_PLACEMENT, 36,
                          EncapsulateXlaComputationsPass);
    
    // from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 11 21:53:08 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_combine.cc

                                                                 /*benefit=*/1) {}
    
      // This method attempts to match a pattern and rewrite it. The rewriter
      // argument is the orchestrator of the sequence of rewrites. The pattern is
      // expected to interact with it to perform any changes to the IR from here.
      mlir::LogicalResult matchAndRewrite(
          mlir::tfd::ConvertTftToDhtOp op,
          mlir::PatternRewriter& rewriter) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 09 12:09:19 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/fixedbugs_test.go

    		t.Errorf("line number missing in assembly:\n%s", out)
    	}
    }
    
    var issue16214src = `
    package main
    
    func Mod32(x uint32) uint32 {
    	return x % 3 // frontend rewrites it as HMUL with 2863311531, the LITERAL node has unknown Pos
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top