- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 343 for rewrite (0.13 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
return failure(); } return success(); } void rewrite(stablehlo::UniformDequantizeOp op, PatternRewriter& rewriter) const override { rewriter.replaceOpWithNewOp<TFL::DequantizeOp>( op, /*resultTypes=*/op->getResultTypes(), /*input=*/op.getOperand()); } }; // Rewrites `stablehlo.dot_general` to `tfl.fully_connected` or
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/mlrt/rewrite_ifrt_load_variable.mlir
// RUN: tf-tfrt-opt -split-input-file -tf-mlrt-rewrite-ifrt-load-variable %s | FileCheck %s // Variable is used by both CPU and TPU // // CHECK-LABEL: func @serving_default(%arg0: tensor<1x3xf32>) -> tensor<1x1xf32> // CHECK-NEXT: [[HANDLE:%.*]] = "tf.VarHandleOp"() // CHECK-NEXT: [[ARRAYKEY:%.*]], [[FURTURE:%.*]] = "tf_mlrt.tf_ifrt_load_variable"([[HANDLE]])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:35:32 UTC 2024 - 1.7K bytes - Viewed (0) -
cni/pkg/install/kubeconfig.go
return kubeconfig{}, err } return kubeconfig{ Full: string(fullYaml), Redacted: string(redacted), }, nil } // maybeWriteKubeConfigFile will validate the existing kubeConfig file, and rewrite/replace it if required. func maybeWriteKubeConfigFile(cfg *config.InstallConfig) error { kc, err := createKubeConfig(cfg) if err != nil { return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 21:52:29 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/quantize.cc
dynamic_range_op.GetDynamicRangeQuantKernelSupport(); return is_blocklisted || !kernel_support || weight_only_quantization; } } }; // Full integer quantization rewrite pattern using DQ as the root op. struct TFLFullQuantization : public TFLQuantizationBase<kFullQuantization, TFLFullQuantization> { explicit TFLFullQuantization(MLIRContext* ctx,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
return IsBounded(updated); } // Propagates more refined type by cloning op using the new operands. This // allows all rewrite patterns that requires refined types to work without // requiring a rewrite to the conversion pattern. Declarative rewrite pattern // (DRR) doesn't even support conversion patterns with TableGen. class TypePropagator : public ConversionPattern { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
} // Holds the size value of a tensor list and whether the size is statically // known (fixed). struct SizeInfo { Value size; bool fixed; }; // Modifies a function's signature to rewrite tensor list arguments to buffers // and sizes. void ModifyFunctionSignature( func::FuncOp func, Type size_type, llvm::SmallDenseMap<Value, SizeInfo>* buffer_to_size,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route_test.go
Http: []*networking.HTTPRoute{ { Match: []*networking.HTTPMatchRequest{ { Name: "full-path-rewrite", }, }, Rewrite: &networking.HTTPRewrite{ UriRegexRewrite: &networking.RegexRewrite{ Match: "/.*", Rewrite: "/replace-full", }, }, Route: []*networking.HTTPRouteDestination{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 88.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
// rewrite will stop. return success(changed); } void DecomposeTFOpsPass::runOnOperation() { // Set a maximum iteration threshold in case there are infinite loops in the // call stack. int max_iterators = 10; do { // canonicalization ApplyCanonicalization(); // rewrite unregistered tf ops. Failed either because no ops can be
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
src/cmd/gofmt/gofmt.go
fragmentOk := info == nil file, sourceAdj, indentAdj, err := parse(fileSet, filename, src, fragmentOk) if err != nil { return err } if rewrite != nil { if sourceAdj == nil { file = rewrite(fileSet, file) } else { r.Warnf("warning: rewrite ignored for incomplete programs\n") } } ast.SortImports(fileSet, file) if *simplifyAST { simplify(file) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 15.1K bytes - Viewed (0) -
tensorflow/compiler/aot/codegen.cc
count *= shape.dimensions(dim); } } rewrites->push_back({"{{I}}", absl::StrCat(i)}); rewrites->push_back({"{{TYPE}}", type}); rewrites->push_back({"{{DIM_VARS}}", absl::StrJoin(dim_vars, ", ")}); rewrites->push_back({"{{DIM_SIZES}}", dim_sizes}); rewrites->push_back({"{{INDICES}}", indices}); rewrites->push_back({"{{COUNT}}", absl::StrCat(count)}); return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 01:20:01 UTC 2024 - 36.8K bytes - Viewed (0)