- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 370 for onStop (0.18 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/remove_var_init_by_const.cc
if (isa<TF::VarHandleOp>(resource_operand.getDefiningOp()) && isa<TF::ConstOp>(assigned_value_operand.getDefiningOp())) { return success(); } else { return failure(); } } void rewrite(TF::AssignVariableOp assign_op, PatternRewriter& rewriter) const override { // `TF::ConstOp` and `TF::VarHandleOp` are not manually erased.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 03 12:04:03 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
// CreateConstOpWithSingleValue. Also, make sure it works with QConst. return failure(); } auto zero_bias = rewriter.create<TFL::ConstOp>(op->getLoc(), bias_attr); op->setOperand(bias_idx, zero_bias); return success(); } TF::ConstOp PadConstValues(Operation* input_op, int value_to_pad, int pad_dimensions, Location loc, OpBuilder* builder) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto begin = rewriter.create<TF::ConstOp>(slice_op.getLoc(), slice_op.getStartIndices()); auto end = rewriter.create<TF::ConstOp>(slice_op.getLoc(), slice_op.getLimitIndices()); auto strides = rewriter.create<TF::ConstOp>(slice_op.getLoc(), slice_op.getStrides());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
} operand = 0; } ShapedType type; float ratio_threshold = kBlockOverRandomSparsityRatio; if (isa<ConstOp>(inst)) { supported_block_size = sparse_op.GetFloatBlockSize(); type = mlir::cast<ShapedType>(dyn_cast<ConstOp>(inst).getType()); } else if (isa<QConstOp>(inst)) { supported_block_size = sparse_op.GetQuantizedBlockSize();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util_test.cc
.Input(FakeInput(DT_INT32)) .Attr("T", DT_INT32) .Device("/job:localhost/replica:0/task:0/device:XLA_CPU:0") .Finalize(node_def())); TF_EXPECT_OK(InitOp()); // Add inputs. Tensor* a = CreateDeviceTensor<int32>(TensorShape({1, 3}), {1, 2, 3}); Tensor* b = CreateDeviceTensor<int32>(TensorShape({1, 3}), {4, 5, 6}); inputs_.push_back({nullptr, a});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 28.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td
}]; let arguments = (ins StrAttr:$node_def, I32Attr:$op_key ); let assemblyFormat = "attr-dict"; } def ConstOp: TensorflowMlrt_Op<"constop", []> { let summary = "The tf_mlrt ConstOp"; let description = [{ The ConstOp creates a constant tensorflow::Tensor from serialized proto. }]; let arguments = (ins StrAttr:$tensor_proto ); let results = (outs
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 20:44:15 UTC 2024 - 13.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc
return ""; } auto assigned_value_operand = assign_var_op.getOperand(1); auto const_op = llvm::dyn_cast<mlir::TF::ConstOp>(assigned_value_operand.getDefiningOp()); if (!const_op) { assign_var_op->emitRemark( "Operand idx 1 is not a tf.ConstOp. The initializing tensor is not " "saved to checkpoint."); return ""; } Tensor const_tensor{};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:36:55 UTC 2024 - 4.8K bytes - Viewed (0) -
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)