- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for getNumOperands (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
if (metadata && num_operands_expected != first_partitioned_input.getNumOperands()) { return first_partitioned_input->emitOpError() << "expects " << num_operands_expected << " operands but found " << first_partitioned_input.getNumOperands(); } for (const auto& operand : replicated_input.getInputs().drop_front()) { auto partitioned_input =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 24 23:08:55 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/quantization_context.cc
QuantizeContext::QuantizeContext(func::FuncOp func, const DeviceTarget &spec) : func_(func), target_spec_(spec) { llvm::DenseMap<Value, int> value_to_state; func.walk([&](quantfork::QuantizeRegionOp op) { for (int i = 0, e = op.getNumOperands(); i != e; ++i) { states_manager_.InitializeOperandState(op, i, &value_to_state); } for (int res = 0, e = op.getNumResults(); res != e; ++res) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 13.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_verifiers.h
// (2) Layout dependent arguments and results indices must be in // [0, getNumOperands/getNumResults) range. LogicalResult VerifyLayoutSensitiveInterface(Operation* op); // Verifies correctness of ops implementing FoldOperandsTransposeInterface (see // definition in tf_op_base.td): // (1) Layout dependent arguments and results indices must be in // [0, getNumOperands/getNumResults) range.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 25 01:54:09 UTC 2020 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc
std::vector<tensorflow::XlaExpression> expressions; std::vector<tensorflow::Tensor> tensors; std::vector<tensorflow::TensorValue> inputs; expressions.reserve(op_->getNumOperands()); tensors.reserve(op_->getNumOperands()); inputs.reserve(op_->getNumOperands()); if (failed( PrepareKernelInputs(required_consts, expressions, tensors, inputs))) return failure(); params_.inputs = inputs;
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/utils/lstm_utils_test.cc
mlir::func::ReturnOp::getOperationName()); it++; // tensor_cast it++; // lstm EXPECT_EQ(it->getName().getStringRef(), mlir::TFL::LSTMOp::getOperationName()); EXPECT_EQ(it->getNumOperands(), 24); EXPECT_EQ(it->getNumResults(), 1); // cifg = false, so input2input is not None. EXPECT_FALSE(mlir::isa<NoneType>(it->getOperand(1).getType())); // input layer norm is None
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
const int num_operands = yield.getNumOperands(); if (num_operands != result_count) return yield.emitOpError() << "has " << yield.getNumOperands() << " operand, but island returns " << result_count; for (int operand_idx : llvm::seq<int>(0, yield.getNumOperands())) { if (island.getResult(operand_idx).getType() !=
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc
if (!main) { op->emitError() << "MLIR Opaque Op expects a main() entry point\n"; return; } if (main.getNumArguments() != op->getNumOperands()) { op->emitError() << "mismatch between MLIR Opaque Op number of operands (" << op->getNumOperands() << ") and main() entry point in the module (" << main.getNumArguments() << " args)\n"; return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc
return success(); } } return failure(); } void rewrite(Operation* op, PatternRewriter& rewriter) const override { // Casts inputs of the operation. for (int i = 0; i < op->getNumOperands(); i++) { Value input = op->getOperand(i); if (getElementTypeOrSelf(input).isBF16()) { Value f32_cast = rewriter.create<TF::CastOp>( op->getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc
OpBuilder builder(&island.GetBody(), island.GetBody().begin()); tf_executor::YieldOp yield = island.GetYield(); if (yield.getNumOperands() == 0) { builder.create<TF::NoOp>(island.getLoc(), TypeRange{}, ValueRange{}); } else if (yield.getNumOperands() == 1) { Value operand = yield.getOperand(0); auto identity = builder.create<TF::IdentityOp>(island.getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fold_broadcast.cc
Operation* op, PatternRewriter& rewriter, const std::function<bool(ArrayRef<int64_t>, ArrayRef<int64_t>, SmallVectorImpl<int64_t>&)>& get_broadcasted_shape) const { if (op->getNumOperands() != 2 || op->getResultTypes().size() != 1) return failure(); // Check that the result shape is fully defined. auto result_type = mlir::dyn_cast_or_null<RankedTensorType>(op->getResultTypes().front());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.9K bytes - Viewed (0)