- Sort Score
- Result 10 results
- Languages All
Results 41 - 43 of 43 for ReplaceOpWithNewOp (0.21 sec)
-
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
} else { return failure(); } if (!new_qtype) return failure(); Type new_output_type = new_qtype.castFromExpressedType( QType::castToExpressedType(output_type)); rewriter.replaceOpWithNewOp<QuantizeOpT>(op, new_output_type, op.getArg()); return success(); } }; // Fold Extra Requantize ops if the preceding ops has free scale requirement. template <typename RequantizeOpT>
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/quantization/tensorflow/passes/quantize_composite_functions.cc
return failure(); } } rewriter.setInsertionPoint(call_op); const StringAttr new_quant_func_name = symbol_table.insert(new_quantized_func); rewriter.replaceOpWithNewOp<TF::PartitionedCallOp>( call_op, result_types, args, FlatSymbolRefAttr::get(new_quant_func_name)); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
// to numElements != 0. numElements will be 0 iff one of the dimensions is // zero. bool any_zero = llvm::any_of(type.getShape(), [](int64_t dim) { return dim == 0; }); rewriter.replaceOpWithNewOp<TF::ConstOp>( op, result_type, DenseElementsAttr::get(result_type, {!any_zero})); } return success(); } }; } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0)