- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for operand_index (0.16 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
for (auto operand_index : args_to_erase) { erase_indices.set(operand_index); } batch_func_op.eraseArguments(erase_indices); } else { llvm::BitVector erase_indices(user_op->getNumOperands()); for (auto operand_index : args_to_erase) { erase_indices.set(operand_index); } user_op->eraseOperands(erase_indices); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc
// Only 1 case is supported. return rewriter.getI64IntegerAttr(1); } Attribute GetQuantizationAxis(PatternRewriter& rewriter, Operation* op, const int operand_index) { auto* defining_op = op->getOperand(operand_index).getDefiningOp(); for (auto attr : kQuantizationAxisAttrs) { if (defining_op->hasAttr(attr)) { return defining_op->getAttr(attr); } } // Not found.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
// Check if the operand_index is included in the quantizable_indices. bool isQuantizableIndex(const int operand_index, const std::vector<int>& quantizable_indices) const { return std::find(std::begin(quantizable_indices), std::end(quantizable_indices), operand_index) != std::end(quantizable_indices); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_op_order.cc
if (!dequantize_op->hasOneUse()) return failure(); auto use = dequantize_op->use_begin(); Operation* passthrough_op = use->getOwner(); unsigned operand_index = use->getOperandNumber(); if (passthrough_op->hasTrait<OpTrait::IsTerminator>()) return failure(); auto get_num_elements = [](RankedTensorType tensor) { int num_elements = 1;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
arith::ConstantOp op, Operation* target_op, const int operand_index) { if (op.getResult().hasOneUse()) { return op; } OpBuilder builder(op->getContext()); builder.setInsertionPointAfter(op); arith::ConstantOp new_op = cast<arith::ConstantOp>(builder.clone(*op)); target_op->getOpOperand(operand_index).set(new_op.getResult()); InitializeOperandState(target_op, operand_index, new_op.getResult());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 38.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc
new_values.reserve(num_elements); auto operand_values = operand.getValues<ElementValueT>(); for (int64_t i = 0; i < num_elements; ++i) { const int64_t operand_index = GetElementIndex(operand_new_shape, current_index); new_values.push_back(*(operand_values.begin() + operand_index)); IncrementIndex(result_shape, current_index); } return DenseElementsAttr::get(result_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.h
// target_op->operand[operand_index] with the newly created op. This also // replaces corresponsing quantization states. arith::ConstantOp DuplicateConstantOpIfNeeded(arith::ConstantOp op, Operation* target_op, int operand_index);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:42:17 UTC 2024 - 16.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc
Value operand, Operation* op, int64_t operand_index) { ElementsAttr const_attr; auto defining_op = operand.getDefiningOp(); ::xla::XlaOp xla_op = xla::Parameter(&xla_builder_, operand_index, xla::TypeToShape(operand.getType()), std::to_string(operand_index));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 18.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h
tensorflow::XlaExpression GetExprForOperand(mlir::Value operand, mlir::Operation* op, int64_t operand_index); mlir::Operation* op_; std::string device_type_; mlir::PatternRewriter& rewriter_; tensorflow::OpOrArgLocNameMapper name_mapper_; tensorflow::XlaContext* context_; // Ref-counted.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
// mapping. void InitializeNamesFromAttribute(FuncOp fn, bool* has_input_attr); // Determines if the specified operation op's operand at operand_index // is marked as a stateful operand. bool IsStatefulOperand(mlir::Operation* op, int operand_index); // Returns a unique name for `val`. std::string UniqueName(mlir::Value val); BufferOffset<tflite::SparsityParameters> BuildSparsityParameters(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0)