- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 406 for onStop (3.42 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size.h
namespace mlir { namespace quant { // Returns the size in bytes of the underlying data of `const_op`. If the // underlying type's size cannot be determined, it assumes 4 bytes per element. int64_t GetSizeInBytes(TF::ConstOp const_op); } // namespace quant } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 14 04:37:13 UTC 2022 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc
} void runOnOperation() override; }; // Returns True iff the otuput value of `op` is either a compile time constant // or bounded from the XLA compiler's perspective, even if it is not a // `ConstOp`. bool IsOutputCompileTimeConstantOrBounded(Operation* op) { return llvm::isa_and_nonnull<TF::ShapeOp, TF::ShapeNOp, TF::RankOp, TF::SizeOp, TF::TensorArraySizeV3Op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 17.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
if (func.getNumArguments() == 0) { return; } auto builder = OpBuilder::atBlockBegin(&func.front()); llvm::SmallDenseMap<llvm::StringRef, TF::ConstOp> const_ops; llvm::BitVector arg_indexes_to_remove(func.getNumArguments()); // Replace arguments with const ops. for (BlockArgument argument : func.getArguments()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
pad_beg, pad_end, 0, 0}; auto paddings = DenseIntElementsAttr::get(padding_type, values); // Update pad_op paddings. op.setOperand(1, builder.create<TF::ConstOp>(loc, paddings)); // Set input type. auto input = op.getOperand(0); SmallVector<int64_t, 4> transform_shape = { pad_input_shape[0], pad_input_shape[1] / block_size,
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/tensorflow/transforms/collection_ops_util.cc
Value CreateScalarConst(int32_t value, OpBuilder builder, Location loc) { auto attr = DenseIntElementsAttr::get( tensorflow::GetTypeFromTFTensorShape({}, builder.getI32Type()), value); return builder.create<TF::ConstOp>(loc, attr); } Value GetR1Const(ArrayRef<int64_t> r1, OpBuilder builder, Location loc, int bitwidth) { llvm::SmallVector<APInt, 4> values; int64_t rank = r1.size(); values.reserve(rank);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.td
include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td" include "mlir/IR/OpBase.td" include "mlir/Dialect/Arith/IR/ArithOps.td" def ConstDenseElementsI32ZeroAttr : NativeCodeCall<"$_builder.create<TFL::ConstOp>($_loc, DenseElementsAttr::get(RankedTensorType::get({}, $_builder.getI32Type()), {0}))">; def Size1InputRange : NativeCodeCall< "SmallVector<Value, 1>{$0}">; def Size2InputRange : NativeCodeCall<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 18 07:12:51 UTC 2023 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.h
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" namespace mlir { namespace quant { std::optional<TF::PartitionedCallOp> ApplyUniformQuantization( PatternRewriter& rewriter, TF::ConstOp op, tensorflow::quantization::QuantizationComponentSpec& weight_spec); } // namespace quant } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Mar 24 07:44:40 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc
q_op->replaceAllUsesWith(new_qcast); return success(); } }; class ConvertTFConstOpToArithConstOp : public OpRewritePattern<TF::ConstOp> { public: using OpRewritePattern::OpRewritePattern; LogicalResult matchAndRewrite(TF::ConstOp op, PatternRewriter& rewriter) const override { rewriter.replaceOpWithNewOp<arith::ConstantOp>(op, op.getValue()); return success();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 05:11:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc
tensorflow::Algorithm tensorflow_rng = tensorflow::ToTensorflowAlgorithm(xla_rng); OpBuilder opbuilder(get_alg_op); auto tf_const = opbuilder.create<TF::ConstOp>( get_alg_op->getLoc(), opbuilder.getI32IntegerAttr((int)tensorflow_rng)); get_alg_op->replaceAllUsesWith(tf_const); get_alg_op->erase(); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 05:56:39 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op_test.cc
quant_spec.set_tensor_type(QuantizationComponentSpec::TENSORTYPE_INT_8); std::optional<TF::PartitionedCallOp> dequantize_op = ApplyUniformQuantization( pattern_rewriter, cast<TF::ConstOp>(value.getDefiningOp()), quant_spec); EXPECT_TRUE(dequantize_op.has_value()); EXPECT_EQ(dequantize_op.value().func().getName().str(), "composite_dequantize_uniform"); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 3K bytes - Viewed (0)