Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for rewrites (0.15 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                                              CastI64ToI32(window_dims[1]).value());
        StringAttr activation_function = rewriter.getStringAttr("NONE");
    
        rewriter.replaceOpWithNewOp<TFL::MaxPool2DOp>(
            op, result_type, input, padding, stride_w_attr, stride_h_attr,
            window_w_attr, window_h_attr, activation_function);
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

          AddHostComputeKeyPlaceholder(xla_cluster_name, &host_graph));
    
      // Step 2: rewrite cond function.
      TF_RETURN_IF_ERROR(RewriteHostWhileLoopCond(
          cond_host_func_name, while_node_name, host_transfer_key,
          xla_cluster_attr_name, xla_cluster_name, outside_compilation_attr_name,
          outside_compilation_name, fld));
    
      // Step 3: rewrite body function.
      TF_RETURN_IF_ERROR(RewriteHostWhileLoopBody(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

    }
    
    def HoistReplicateInvariantResourceWritesPass : Pass<"tf-hoist-replicate-invariant-resource-writes", "mlir::func::FuncOp"> {
      let summary = "Hoists writes to replicate invariant resource variables.";
    
      let description = [{
        This pass hoists replicate invariant resource variable writes outside
        tf_device.replicate op. These may have been inserted by other passes such as
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

    // Divisibility checks x%c == 0 convert to multiply and rotate.
    // Note, x%c == 0 is rewritten as x == c*(x/c) during the opt pass
    // where (x/c) is performed using multiplication with magic constants.
    // To rewrite x%c == 0 requires pattern matching the rewritten expression
    // and checking that the division by the same constant wasn't already calculated.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/pkg.go

    // and because the eventual real load of the test imports (during 'go test')
    // can produce better error messages if it starts with the original paths.
    // The initial load of p loads all the non-test imports and rewrites
    // the vendored paths, so nothing should ever call p.vendored(p.Imports).
    func (p *Package) Resolve(imports []string) []string {
    	if len(imports) > 0 && len(p.Imports) > 0 && &imports[0] == &p.Imports[0] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize.cc

            loc, GetI64ElementsAttr(new_broadcast_shape, &rewriter));
    
        auto new_broadcast_to_op = rewriter.create<TFL::BroadcastToOp>(
            loc, RankedTensorType::get(new_broadcast_shape, rewriter.getF32Type()),
            new_inner_reshape_op.getOutput(), new_broadcast_shape_value);
    
        // Create a new broadcast_op to replace the old broadcast_op.
        rewriter.replaceOp(tfl_broadcast_to_op, new_broadcast_to_op.getResult());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		},
    
    		// (InvertFlags (CMPQ a b)) == (CMPQ b a)
    		// So if we want (SETL (CMPQ a b)) but we can't do that because a is a constant,
    		// then we do (SETL (InvertFlags (CMPQ b a))) instead.
    		// Rewrites will convert this to (SETG (CMPQ b a)).
    		// InvertFlags is a pseudo-op which can't appear in assembly output.
    		{name: "InvertFlags", argLength: 1}, // reverse direction of arg0
    
    		// Pseudo-ops
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

              output_ty.getRank(), rewriter.getIntegerType(32));
          shape_attr = DenseIntElementsAttr::get(output_int_type, output_shape);
        }
    
        auto shape = rewriter.create<ConstOp>(pack_op.getLoc(), shape_attr);
    
        // TODO(b/173622615): Remove after fixed.
        ReplaceTfOpWithNewOp<ReshapeOp>(rewriter, pack_op, output_ty,
                                        pack_op.getOperand(0), shape);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        }
      }
      // Inline the region into the block containing the IfRegion.
      rewriter.inlineBlockBefore(&region.front(), op);
      rewriter.eraseOp(yield);
      rewriter.replaceOp(op, updated_results);
      return success();
    }
    }  // anonymous namespace
    
    void IfRegionOp::getCanonicalizationPatterns(RewritePatternSet& results,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

              /*dilations=*/rewriter.getI64ArrayAttr(dilation));
        } else {
          output = rewriter.create<TF::Conv2DOp>(
              conv_op.getLoc(), conv_output_type, sliced_lhs, rhs,
              rewriter.getI64ArrayAttr(strides),
              /*use_cudnn_on_gpu=*/rewriter.getBoolAttr(true),
              /*padding=*/rewriter.getStringAttr(padding),
              /*explicit_paddings=*/rewriter.getI64ArrayAttr(new_padding),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top