- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 70 for eraseOp (0.3 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
CreateXlaCallModuleOp(inputs, outputs, result_types, reverse_subgraph, stablehlo_func_op, module_op); // 3) Erase the replaced ops. for (Operation* subgraph_op : reverse_subgraph) { subgraph_op->erase(); } } // Contains the actual logic for updating states and replacing StableHLO ops // with tf.XlaCallModuleOps. void UpdateStatesAndReplaceStablehloOps(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
if (argnum_num_users[arg_num] != conv2d_and_block_sizes.size() || conv2d_and_block_sizes.empty()) { argnum_and_convolutions.erase(arg_num); continue; } int64_t block_size = conv2d_and_block_sizes[0].second; if (block_size < 2) { argnum_and_convolutions.erase(arg_num); continue; } // Continue if not all the block sizes for space to depth transform are the // same.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
} op_state.addTypes(output_tys); op_state.addAttributes(attr); auto stablehlo_op = builder.create(op_state); custom_op.replaceAllUsesWith(stablehlo_op); custom_op.erase(); }); } std::unique_ptr<OperationPass<func::FuncOp>> CreateTflToStablehloPass() { return std::make_unique<TflToStablehloPass>(); } static PassRegistration<TflToStablehloPass> pass;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationLogger.java
* The compiler is happy with the casting that allows to hide the checked exception. * The runtime is happy with the casting because the checked exception type information is captured in a generic type parameter which gets erased. */ private static <T, E extends Exception> Factory<T> toUncheckedThrowingFactory(final ThrowingFactory<T, E> throwingFactory) { return new Factory<T>() { @Nullable @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 13.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
void PrepareQuantizeDRQPass::removeAllStatsOp(func::FuncOp func) { func.walk([&](quantfork::StatisticsOp stats_op) { stats_op.replaceAllUsesWith(stats_op.getArg()); stats_op.erase(); }); } #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.inc" void PrepareQuantizeDRQPass::runOnOperation() { MLIRContext* ctx = &getContext();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
// structured lowering. old_parallel_execute.walk( [&](TF::_XlaCompileMlirPlaceholderProgramKeyOp key_op) { key_op.replaceAllUsesWith(compile_op->getResult(1)); key_op.erase(); }); // After rewrite, if there is a TPUCompilationResultOp from the same cluster, // replace it with the result of the compile op. The TPUCompilationResultOp is
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h
// if the "tf_saved_model.index_path" attribute has "__tf_file_prefix", will be // reused if it already exist in @main. Otherwise a new file prefix argument // will be created. @tf_quant__save function will be erased. // // Running this pass essentially has the effect of inlining the @tf_quant__save // into the main graph. This is beneficial when we wish to find and fetch
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
#include "tensorflow/core/framework/types.pb.h" namespace mlir { namespace quant { // A unit attribute can be attached to the quantize/dequantize ops which are // added by the quantization passes. These ops can be removed erased without // losing accuracy. inline constexpr char kVolatileOpAttrName[] = "volatile"; // Following attributes are used to mark ops that are not quantizable during
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc
auto flex_op = builder.create<TFL::CustomOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), flex_op_name, CustomOptionForFlexOp(&builder, custom_option_buffer)); op->replaceAllUsesWith(flex_op); op->erase(); return true; } // Sets the "no_fallback" attribute. Value SetNoFallbackAttr(PatternRewriter &rewriter, Value val) { val.getDefiningOp()->setAttr(kNoFallbackAttr, rewriter.getUnitAttr()); return val;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.2K bytes - Viewed (0)