Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 298 for OperationPass (0.17 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc

        }
      });
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateTargetAnnotationPass(
        llvm::ArrayRef<std::string> device_specs) {
      return std::make_unique<TargetAnnotationPass>(device_specs);
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateTargetAnnotationPass(
        const TacModule* module) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 19:32:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

          total_element_count += input_type.getNumElements();
        }
      }
      return total_element_count;
    }
    
    struct GetOpCostPass
        : mlir::PassWrapper<GetOpCostPass, OperationPass<func::FuncOp>> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(GetOpCostPass)
    
      llvm::StringRef getArgument() const final { return "tfl-get-op-cost"; }
      llvm::StringRef getDescription() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/strip_noinline_attribute.cc

        for (auto func_op : getOperation().getOps<func::FuncOp>())
          func_op->removeAttr("tf._noinline");
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateStripNoinlineAttributePass() {
      return std::make_unique<StripNoinlineAttributePass>();
    }
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables_test_pass.cc

        TF::test_util::FakeSession session;
        if (tf_saved_model::FreezeVariables(getOperation(), &session).failed())
          signalPassFailure();
      }
    };
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeVariableTestPass() {
      return std::make_unique<FreezeVariableTestPass>();
    }
    }  // namespace tf_test
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/verify_suitable_for_graph_export_pass.cc

     public:
      void runOnOperation() override {
        if (failed(tensorflow::VerifyExportSuitable(getOperation())))
          return signalPassFailure();
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateVerifySuitableForExportPass() {
      return std::make_unique<VerifySuitableForExportPass>();
    }
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.cc

      populateWithGenerated(patterns);
      auto func = getOperation();
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizeIntGraphPass() {
      return std::make_unique<OptimizeIntGraph>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 24 02:26:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass.cc

          has_tpu_partitioned_call ? "true" : "false";
      has_tpu_partitioned_call_streamz->GetCell(has_tpu_partitioned_call_str)
          ->IncrementBy(1);
    }
    
    }  // namespace
    
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>>
    CreateInferenceMetricsPass() {
      return std::make_unique<InferenceMetricsPass>();
    }
    
    }  // namespace internal
    }  // namespace tf2xla
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 05 21:24:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/quantize.cc

        updated_quant_specs.nodes_blocklist = nodes_blocklist;
      }
      return std::make_unique<QuantizePass>(updated_quant_specs);
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateDefaultQuantizePass() {
      return std::make_unique<QuantizePass>();
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        const bool verify_numeric, const bool whole_model_verify,
        const bool legacy_float_scale,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

    // The pass to legalize the quantization emulation ops from TF.
    //
    namespace {
    
    // Legalize TF quantization emulation ops to that in Quant ops dialect.
    struct LegalizeTFToQuant
        : public PassWrapper<LegalizeTFToQuant, OperationPass<func::FuncOp>> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeTFToQuant)
    
      explicit LegalizeTFToQuant() = default;
      LegalizeTFToQuant(const LegalizeTFToQuant &) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

        TacFilter;
    using ::third_party::tensorflow::compiler::mlir::lite::experimental::tac::
        TacFilters;
    
    class TacFilterPass
        : public PassWrapper<TacFilterPass, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TacFilterPass)
    
      TacFilterPass() = default;
      TacFilterPass(const TacFilterPass& other) {
        this->tac_filters_ = other.tac_filters_;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top