- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 218 for getOperands (0.17 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
return input->emitOpError() << "requires " << num_inputs << " operands"; if (is_packed) { packed_inputs.push_back(input->getOperand(0)); packed_ops.push_back(input); } else { replicated_inputs.push_back( {input->getOperands(), input->getOperand(0).getType()}); replicated_ops.push_back(input); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc
// func.walk([&](quantfork::QuantizeCastOp q_op) { // If up with end up with auto dq_op = dyn_cast_or_null<quantfork::DequantizeCastOp>( q_op.getOperand().getDefiningOp()); if (!dq_op) { return; } auto dq_arg = dq_op.getOperand(); if (!dq_arg.hasOneUse()) { // The initial quantization is used someplace else ... so it might be
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
func_metadata.original_name = func_op.getName(); func_metadata.insertion_point = ++Block::iterator(func_op); func_metadata.ops.push_back(op); for (Value value : op->getOperands()) { std::string value_device = ""; // If the value is defined as an argument of the func_op, adds it to // the argument list of the function that uses this op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
// case it is quantized. for (int i = 0, e = quantized_op->getNumOperands(); i < e; ++i) { auto def = quantized_op->getOperand(i).getDefiningOp(); if (auto q = llvm::dyn_cast_or_null<QuantizeOpT>(def)) { DenseFPElementsAttr attr; if (!matchPattern(q.getOperand(), m_Constant(&attr))) { continue; } auto cst = rewriter.create<arith::ConstantOp>(
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/tf2xla/transforms/tf2xla_rewriter.cc
std::vector<tensorflow::Tensor>& tensors, std::vector<tensorflow::TensorValue>& inputs) { // Prepare the list of Tensor inputs for the kernel. for (auto it : llvm::enumerate(op_->getOperands())) { Value operand = it.value(); size_t idx = it.index(); tensorflow::XlaExpression expr = GetExprForOperand(operand, op_, idx); tensorflow::XlaExpression::Kind kind = expr.kind();
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/lite/stablehlo/transforms/legalize_hlo.cc
if (compare_op.getComparisonDirection() != mhlo::ComparisonDirection::GT) { return false; } if (compare_op.getOperands()[0] != comparator_blk.getArgument(0) || compare_op.getOperands()[1] != comparator_blk.getArgument(1)) { return false; } return return_op.getOperands().front() == compare_op.getResult(); } // In general, we convert the following form of sort to tf.TopK: //
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/tensorflow/transforms/promote_resources_to_args.cc
} write_op.erase(); } } const int64_t num_results_before = function.getNumResults(); auto return_operands = llvm::to_vector<4>(return_op.getOperands()); auto result_types = llvm::to_vector<4>(return_op.getOperandTypes()); llvm::SmallVector<std::pair<int64_t, llvm::StringRef>, 4> output_only_resources;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc
} // Gets the predecessors of an op wrapped in tf_executor.island. llvm::SmallVector<Operation*> GetPredecessors(Operation* op) { llvm::SmallVector<Operation*> predecessors; for (auto operand : op->getOperands()) { if (Operation* pred = operand.getDefiningOp()) { pred->walk([&](mlir::Operation* opinexecutor) { predecessors.push_back(opinexecutor); }); } } return predecessors; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 06:51:01 UTC 2024 - 21.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
OpBuilder builder(while_op); llvm::SmallVector<Type, 4> new_operand_types; llvm::SmallVector<Value> new_operands; auto operands = while_op->getOperands(); const int num_operands = while_op->getNumOperands(); llvm::BitVector skip_indices(num_operands); for (int i : arguments_to_erase) skip_indices.set(i); for (int i = 0; i < num_operands; ++i) {
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/common/lift_as_function_call.cc
value_queue.pop(); Operation* defining_node = current_value.getDefiningOp(); if (defining_node == nullptr) continue; op_stack.push(defining_node); for (Value arg : defining_node->getOperands()) { if (!argument_set.contains(arg.getImpl())) { value_queue.push(arg); } } } // Remove duplicate ops from the op stack. SmallVector<Operation*> sorted_ops;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0)