- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 293 for runOnOperation (0.37 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc
// related ops, e.g., ReadVariableOp, if the variable is read only. struct HoistLoopInvariantPass : public impl::HoistLoopInvariantPassBase<HoistLoopInvariantPass> { void runOnOperation() override; }; // Get the resource handle of the given `op`. ResourceHandle GetResourceHandle(Operation *op) { llvm::StringRef device; if (auto attr = op->getAttrOfType<StringAttr>("device")) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc
constexpr char kFuncDeviceAttr[] = "tf.device"; constexpr char kCpuDeviceType[] = "CPU"; struct HoistBroadcastRead : public impl::HoistBroadcastReadPassBase<HoistBroadcastRead> { void runOnOperation() override; }; // Get the ancestor of `descendant` that is a direct child of `ancestor`. Operation* GetAncestorBelow(Operation* descendant, Operation* ancestor) { Operation* parent = descendant->getParentOp();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
struct TPUReorderReplicateAndPartitionedInputsPass : public impl::TPUReorderReplicateAndPartitionedInputsPassBase< TPUReorderReplicateAndPartitionedInputsPass> { void runOnOperation() override; }; LogicalResult ReorderReplicateAndPartitionedInputs( TF::TPUReplicatedInputOp replicated_input) { if (!llvm::all_of(replicated_input.getInputs(), [](Value 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/tensorflow/transforms/init_text_file_to_import.cc
InitTextFileToImportPass(const InitTextFileToImportPass&) {} explicit InitTextFileToImportPass(std::string saved_model_dir) { saved_model_dir_ = saved_model_dir; } private: void runOnOperation() override; }; class ConvertInitializeTableFromTextFileV2 : public OpRewritePattern<InitializeTableFromTextFileV2Op> { public: explicit ConvertInitializeTableFromTextFileV2(mlir::MLIRContext* context,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc
class VerifyTFXLALegalization : public impl::VerifyTFXLALegalizationBase<VerifyTFXLALegalization> { public: explicit VerifyTFXLALegalization(bool legalize_chlo) { legalize_chlo_ = legalize_chlo; } void runOnOperation() override; }; static void IncrementCounterFor(tensorflow::monitoring::Counter<1>* counter, Operation* op) { counter->GetCell(op->getName().getStringRef().str())->IncrementBy(1); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc
llvm::StringRef getArgument() const final { return "tfl-get-op-cost"; } llvm::StringRef getDescription() const final { return "Get cost for every op"; } void runOnOperation() override; }; void GetOpCostPass::runOnOperation() { auto func = getOperation(); OpBuilder builder(func); func.walk([&](Operation* op) { if (IsNonConstOp(op) && !IsTerminatorOp(op) &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc
using impl::InsertCalibrationStatisticsSaverPassBase< InsertCalibrationStatisticsSaverPass>:: InsertCalibrationStatisticsSaverPassBase; private: void runOnOperation() override; }; void InsertCalibrationStatisticsSaverPass::runOnOperation() { ModuleOp module_op = getOperation(); MLIRContext& ctx = getContext(); std::unordered_set<std::string> aggregator_ops_to_ignore(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc
public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(NoOpPass) NoOpPass() = default; llvm::StringRef getArgument() const final { return "no-op-pass"; } void runOnOperation() override { // Noop pass does nothing on the operation. } }; std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateNoOpPass() { return std::make_unique<NoOpPass>(); } class ParentPass
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 03:17:14 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/tf_savedmodel_passes.h.inc" struct OptimizeGlobalTensorsPass : public impl::OptimizeGlobalTensorsPassBase<OptimizeGlobalTensorsPass> { void runOnOperation() override; }; // A global tensor is bound to arguments of multiple funcs. // This struct tracks which funcs (and which argument to that func) the global // tensor is bound to. struct GlobalTensorUse {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc" class TPUAnnotateDynamicShapeInputsPass : public impl::TPUAnnotateDynamicShapeInputsPassBase< TPUAnnotateDynamicShapeInputsPass> { void runOnOperation() override; }; // Finds op that created a given value. If the value is a BlockArgument, this // returns the owner of the Block. Operation* GetOpOfValue(Value value) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0)