Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 343 for rewrite (0.16 sec)

  1. hack/golangci-hints.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
    - 7.8K 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. hack/golangci.yaml.in

          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: Tue Feb 13 13:12:04 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. hack/golangci-strict.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.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top