- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,083 for rewrites (1.55 sec)
-
tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_combine.cc
// 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 { // Look through the inputs of the ConvertTftToDhtOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 09 12:09:19 UTC 2022 - 3.5K bytes - Viewed (0) -
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) -
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) -
pkg/test/framework/resource/matcher.go
a = append(a, s[:i]) s = s[i+1:] i = 0 continue } } i++ } return append(a, s) } // rewrite rewrites a subname to having only printable characters and no white // space. // From go/src/testing/match.go func rewrite(s string) string { b := []byte{} for _, r := range s { switch { case isSpace(r): b = append(b, '_') case !strconv.IsPrint(r):
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 12 23:30:37 UTC 2021 - 3.2K bytes - Viewed (0) -
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) -
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) -
src/cmd/compile/internal/test/fixedbugs_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 18:07:35 UTC 2023 - 2.1K bytes - Viewed (0) -
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) -
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) -
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)