- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for LSTMOp (0.09 sec)
-
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
using DQ = quantfork::DequantizeCastOp; template <typename LstmOp> LogicalResult GetLstmProperty(LstmOp op, operator_property::OpVariant* lstm_variant, operator_property::OperatorProperty* op_property, int activation_number_of_bits = 8) { if (llvm::isa<TFL::LSTMOp>(op.getOperation())) { lstm_variant->op_code = tflite::BuiltinOperator_LSTM;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc
EXPECT_EQ(it->getName().getStringRef(), 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()));
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/lite/transforms/prepare_quantize.cc
// consistent. Otherwise some FileCheck tests would fail. RewritePatternSet patterns_1(&getContext()); if (quant_specs_.post_training_quantization) { patterns_1.add<PrepareLstmOutputScale<LSTMOp>>(ctx); patterns_1.add<PrepareLstmOutputScale<UnidirectionalSequenceLSTMOp>>(ctx); } if (is_qdq_conversion_ || quant_specs_.qdq_conversion_mode != quant::QDQConversionMode::kQDQNone) {
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/lite/ir/tfl_ops.cc
//===----------------------------------------------------------------------===// // LSTMOp //===----------------------------------------------------------------------===// mlir::LogicalResult LSTMOp::verify() { LSTMOp op = *this; auto operands = op.GetStatefulOperands(); if (operands.size() != 2 || operands[0] != 18 || operands[1] != 19) { return op.emitOpError("LSTMOp expected to have two stateful operands"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
auto func = getOperation(); auto* ctx = func.getContext(); TFL::populateWithGenerated(patterns); patterns.add<quant::FoldTrivalRequantizeOp<QuantizeOp>>(ctx); patterns.add<PruneUnusedOpsWithSideEffect<TFL::LSTMOp>>(ctx); patterns.add<PruneUnusedOpsWithSideEffect<TFL::UnidirectionalSequenceLSTMOp>>( ctx); patterns.add<PruneUnusedOpsWithSideEffect<TFL::SVDFOp>>(ctx);
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/lite/utils/lstm_utils.cc
auto result_type = mlir::RankedTensorType::get( output_shape, mlir::cast<RankedTensorType>(input_.getType()).getElementType()); lstm_ = builder_.create<mlir::TFL::LSTMOp>( fused_func_op_.getLoc(), result_type, input_, input2input_, input2forget_, input2cell_, input2output_, rec2input_, rec2forget_, rec2cell_, rec2output_, /*cell_to_input_weights*/ none_,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
target.addDynamicallyLegalOp<TF::TensorListSetItemOp>(is_set_item_legal); target.addLegalOp<TFL::CustomOp>(); // Register fused LSTM/RNN ops as legal. target.addLegalOp<TFL::LSTMOp>(); target.addLegalOp<TFL::UnidirectionalSequenceLSTMOp>(); target.addLegalOp<TFL::UnidirectionalSequenceRNNOp>(); target.addLegalOp<TFL::BidirectionalSequenceLSTMOp>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
unrolling the input along the time or batch dimensions, and implements the following operation for each element in the sequence s = 1...sequence_length: outputs[s] = state = activation(LSTMOp(inputs[s])) where LSTMOp is LSTM TF Lite Op and the “activation” is the function passed as the “fused_activation_function” argument (if not “NONE”). }]; let arguments = ( ins TFL_FpTensor:$input,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
continue; } std::vector<int32_t> intermediates; // Build intermediate tensors for tfl.lstm and insert these tensors into // flatbuffer. if (llvm::isa<mlir::TFL::LSTMOp, mlir::TFL::UnidirectionalSequenceLSTMOp>( inst)) { std::vector<std::string> intermediate_names = { "input_to_input_intermediate", "input_to_forget_intermediate",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0)