Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ErrorCollectorInstrumentation (0.18 sec)

  1. tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc

      return "";
    }
    
    // Only notes with character count smaller than kMaxAcceptedNoteSize will be
    // appended to the error message.
    const int kMaxAcceptedNoteSize = 1024;
    }  // namespace
    
    ErrorCollectorInstrumentation::ErrorCollectorInstrumentation(
        MLIRContext *context)
        : error_collector_(ErrorCollector::GetErrorCollector()) {
      handler_ = std::make_unique<ScopedDiagnosticHandler>(
          context, [this](Diagnostic &diag) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/metrics/error_collector_inst.h

    namespace mlir {
    namespace TFL {
    
    // Collects errors when running the pass manager.
    class ErrorCollectorInstrumentation : public PassInstrumentation {
      using ConverterErrorData = tflite::metrics::ConverterErrorData;
      using ErrorCode = ConverterErrorData::ErrorCode;
    
     public:
      explicit ErrorCollectorInstrumentation(MLIRContext *context);
    
     private:
      // Instrumentation hooks. These hooks don't need to be thread-safe. The pass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

      PassManager pm(module.value().get()->getName(),
                     OpPassManager::Nesting::Implicit);
      pm.addPass(std::make_unique<MockSuccessPass>());
    
      pm.addInstrumentation(
          std::make_unique<ErrorCollectorInstrumentation>(&context));
      EXPECT_EQ(succeeded(pm.run(module.value().get())), true);
    
      auto collected_errors =
          ErrorCollector::GetErrorCollector()->CollectedErrors();
      EXPECT_EQ(collected_errors.size(), 0);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

      }
      InitPassManager(pass_manager, toco_flags.debug_options());
    
      pass_manager.addInstrumentation(
          std::make_unique<mlir::TFL::ErrorCollectorInstrumentation>(
              pass_manager.getContext()));
    
      if (failed(IsValidGraph(module))) {
        return status_handler.ConsumeStatus();
      }
    
      Session* session = saved_model_bundle == nullptr
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top