Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 138 for REWRITES (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/verify_quant_legalization.cc

    // some generic types that are legal in MHLO. This pass legalizes TF types into
    // types that are legal in MHLO. For example, TF::Qint8Type is converted to i8.
    // Rewrites here should run before TF to MHLO op legalizations are run.
    
    #include <memory>
    
    #include "absl/log/log.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/Support/Casting.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.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`
        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)
  6. tensorflow/compiler/jit/encapsulate_xla_computations_pass.h

     See the License for the specific language governing permissions and
     limitations under the License.
     ==============================================================================*/
    // Rewrites computations generated by the xla.compile() Python code into
    // XlaLaunch nodes.
    //
    // xla.compile() does two main things:
    // a) marks operators that make up an XLA computation with the attribute
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize.cc

      PopulateAllQuantizablePatterns(ctx, patterns);
    
      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
        // There are cases where no rewrites happen even if a pattern matches,
        // causing this to result in a convergence failure. Consider this as a
        // best-effort.
        module_op.emitWarning("Failed to converge pattern at QuantizePass.");
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 07:08:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. tensorflow/compiler/jit/extract_outside_compilation_pass.h

        const std::map<string, int>& host_compute_core, FunctionLibraryRuntime* flr,
        FunctionLibraryDefinition* fld, std::vector<string>* shape_inference_graphs,
        bool* has_outside_compilation);
    
    // Rewrites XLA computation in `clusters` to replace outside compilation nodes
    // with XlaHostCompute, and moves those outside compilations into `g`. If shapes
    // of outside compilation outputs cannot be determined now, we will store shape
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top