Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 603 for rewrites (0.13 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      region.front().eraseArguments(0, region.getNumArguments());
    }
    
    // Rewrites an `mhlo.if` op or its region. If `region_idx` is not set, the op
    // operands and results are rewritten. If `region_idx` is set, region
    // `region_idx` is rewritten to take in and return an additional token. Returns
    // true if the op or its region was rewritten.
    bool ProcessRegionIfOp(OpBuilder& builder, IfOp region_if,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize.cc

    };
    
    // Quantization rewrite pattern using DQ as the root op.
    struct StableHloQuantization
        : public StableHloQuantizationBase<StableHloQuantization> {
      explicit StableHloQuantization(MLIRContext* ctx)
          : StableHloQuantizationBase<StableHloQuantization>(ctx) {}
    };
    
    // Quantization rewrite pattern using Q as the root op. This is for the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 07:08:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. 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)
  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/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc

        auto filter_transpose_op = rewriter.create<mlir::stablehlo::TransposeOp>(
            op.getLoc(), /*resultType0=*/new_filter_tensor_type, /*operand=*/filter,
            rewriter.getDenseI64ArrayAttr(kOihwToHwioPermutation));
    
        // [b, 0, 1, f]x[0, 1, i, o]->[b, 0, 1, f]
        const auto new_dimension_nums = rewriter.getAttr<ConvDimensionNumbersAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/go/internal/work/gc.go

    				}
    			} else {
    				// Non-overlay Go files are covered by the a.Package.Dir rewrite rule above.
    			}
    		}
    	}
    	if hasCgoOverlay {
    		rewrite += overlayNonGoRewrites
    	}
    	rewrite += objdir + "=>"
    
    	return rewrite
    }
    
    func asmArgs(a *Action, p *load.Package) []any {
    	// Add -I pkg/GOOS_GOARCH so #include "textflag.h" works in .s files.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

                                             PatternRewriter& rewriter) {
      OpBuilder::InsertionGuard insertion_guard(rewriter);
    
      // Create a new `CallOp` that calls `callee_func_op`.
      rewriter.setInsertionPoint(xla_call_module_op);
      auto call_op =
          rewriter.create<func::CallOp>(xla_call_module_op.getLoc(), callee_func_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite.go

    const (
    	leaveDeadValues  deadValueChoice = false
    	removeDeadValues                 = true
    )
    
    // deadcode indicates whether rewrite should try to remove any values that become dead.
    func applyRewrite(f *Func, rb blockRewriter, rv valueRewriter, deadcode deadValueChoice) {
    	// repeat rewrites until we find no more rewrites
    	pendingLines := f.cachedLineStarts // Holds statement boundaries that need to be moved to a new value/block
    	pendingLines.clear()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

    // Returns a TF Constant tensor with the passed in values.
    TF::ConstOp GetI64ConstantTensor(PatternRewriter &rewriter,
                                     ArrayRef<int64_t> values, Location location) {
      auto cst_attr = rewriter.getI64TensorAttr(values);
      return rewriter.create<TF::ConstOp>(location, cst_attr.getType(), cst_attr);
    }
    
    // Rewrites broadcast->reshape to a reshape->broadcast that reduces
    // the rank of the input and output of the broadcast.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top