- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for UnidirectionalSequenceLSTMOp (0.29 sec)
-
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
return false; } // Special case handling for UnidirectionalSequenceLSTMOp, which doesn't // support partial quantization of its inputs. // Below, we check all of the input constants for the // UnidirectionalSequenceLSTMOp to see if any of them would not be // quantized due to not meeting the minimum_elements_for_weights
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/quantization/tools/op_quant_spec_getters_gen.cc
OUT(4) << "return GetLstmOpQuantSpec<TFL::LSTMOp>(lstm_op);\n"; OUT(2) << "} else if (auto lstm_op = " "llvm::dyn_cast<TFL::UnidirectionalSequenceLSTMOp>(op)) {\n"; OUT(4) << "return " "GetLstmOpQuantSpec<TFL::UnidirectionalSequenceLSTMOp>(lstm_op);\n"; OUT(2) << "}\n"; OUT(2) << "auto spec = std::make_unique<quant::OpQuantSpec>();\n"; llvm::SmallVector<llvm::StringRef, 3> matches;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 11:18:44 UTC 2024 - 4.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc
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) { patterns_1.add<PropagateTransposedPerAxisQuantDim>(ctx); }
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/transforms/post_quantize.cc
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); patterns.add<PruneUnusedOpsWithSideEffect<TFL::CustomOp>>(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/transforms/prepare_composite_functions_tf.cc
return WalkResult::interrupt(); } return WalkResult::advance(); }); if (result.wasInterrupted()) return failure(); } // Current UnidirectionalSequenceLSTMOp doesn't support mask input. if (lstm_func.getNumArguments() == 7) return failure(); // We should know the batch size in advance for the lstm fusion.
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/transforms/prepare_quantize_helper.h
int activation_number_of_bits = 8) { if (llvm::isa<TFL::LSTMOp>(op.getOperation())) { lstm_variant->op_code = tflite::BuiltinOperator_LSTM; } else if (llvm::isa<TFL::UnidirectionalSequenceLSTMOp>(op.getOperation())) { lstm_variant->op_code = tflite::BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_LSTM; } else { op.emitError("ConvertLstmStatsToQDQs pass only supports LSTMs.");
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/ir/tfl_ops.cc
} //===----------------------------------------------------------------------===// // UnidirectionalSequenceLSTMOp //===----------------------------------------------------------------------===// mlir::LogicalResult UnidirectionalSequenceLSTMOp::verify() { UnidirectionalSequenceLSTMOp op = *this; auto operands = op.GetStatefulOperands();
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/utils/lstm_utils.cc
output_shape, mlir::cast<RankedTensorType>(final_inputs.getType()).getElementType()); Value none = CreateNoneValue(builder, func_op.getLoc()); auto lstm = builder->create<mlir::TFL::UnidirectionalSequenceLSTMOp>( func_op.getLoc(), result_type, /*input=*/final_inputs, /*input_to_input_weights=*/weights_array->getResult(0), /*input_to_forget_weights=*/weights_array->getResult(1),
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/legalize_tf.cc
// will always be time_majored. attributes.push_back( rewriter.getNamedAttr("time_major", rewriter.getBoolAttr(true))); Value lstm_result = rewriter.create<TFL::UnidirectionalSequenceLSTMOp>( op->getLoc(), result_types, inputs, attributes); // Rewire the output. rewriter.replaceOp(op, {nullptr, nullptr, lstm_result}); return success(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
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>(); RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0)