Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for StatusScopedDiagnosticHandler (0.39 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/error_util.cc

    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/util/managed_stack_trace.h"
    
    namespace mlir {
    
    StatusScopedDiagnosticHandler::StatusScopedDiagnosticHandler(
        MLIRContext* context, bool propagate, bool filter_stack)
        : BaseScopedDiagnosticHandler(context, propagate, filter_stack) {
      if (filter_stack) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/python/mlir.cc

          TF_SetStatus(status, TF_INVALID_ARGUMENT,
                       ("Invalid pass_pipeline: " + error_stream.str()).c_str());
          return "// error";
        }
    
        mlir::StatusScopedDiagnosticHandler statusHandler(module.getContext());
        if (failed(pm.run(module))) {
          tsl::Set_TF_Status_from_Status(status, statusHandler.ConsumeStatus());
          return "// error";
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/graph_optimization_pass.cc

      // Prepare IR for exporting.
      pm.addPass(CreateBreakUpIslandsPass());
    
      // In case of failure, the `diag_handler` converts MLIR errors emitted to the
      // MLIRContext into a tensorflow::Status.
      StatusScopedDiagnosticHandler diag_handler(module.getContext());
      LogicalResult result = pm.run(module);
      (void)result;
      return diag_handler.ConsumeStatus();
    }
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/function/function.cc

      print_flags.elideLargeElementsAttrs();
    
      if (VLOG_IS_ON(1)) {
        VLOG(1) << "Input TF Executor dialect:";
        DumpMlirOpToFile("tf_to_tfrt_tf_executor_dialect", module);
      }
    
      mlir::StatusScopedDiagnosticHandler diag_handler(module.getContext());
    
      // Lower MLIR TF Dialect to MLIR TFRT CoreRT dialect.
      mlir::PassManager pm(module.getContext());
      tensorflow::applyTensorflowAndCLOptions(pm);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 08:13:15 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/sparsity/sparsify_model.cc

    namespace mlir {
    namespace lite {
    
    absl::Status SparsifyModel(const tflite::ModelT& input_model,
                               flatbuffers::FlatBufferBuilder* builder) {
      MLIRContext context;
      StatusScopedDiagnosticHandler statusHandler(&context,
                                                  /*propagate=*/true);
    
      // Import input_model to a MLIR module
      flatbuffers::FlatBufferBuilder input_builder;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:16:40 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.h

        std::unique_ptr<tensorflow::SavedModelBundle>* saved_model_bundle);
    
    Status ConvertTFExecutorToStablehloFlatbuffer(
        mlir::PassManager& pass_manager, mlir::ModuleOp module, bool export_to_mlir,
        mlir::StatusScopedDiagnosticHandler& statusHandler,
        const toco::TocoFlags& toco_flags, const mlir::TFL::PassConfig& pass_config,
        std::optional<tensorflow::Session*> session, std::string* result);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 08:30:24 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

        QuantizationConfig* quantization_config,
        const PyFunctionLibrary* quantization_py_function_lib,
        const SavedModelBundle* saved_model_bundle, mlir::PassManager& pass_manager,
        mlir::StatusScopedDiagnosticHandler& status_handler, ModuleOp& module) {
      // TODO: b/194747383 - We need to valid that indeed the "main" func is
      // presented.
      AddPreQuantizationStableHloToTfPasses(/*entry_function_name=*/"main",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.cc

      for (auto& entry : denylisted_ops) {
        denylisted_mlir_op_names.insert(TfLiteToMlir(entry));
      }
    
      DialectRegistry registry;
      MLIRContext context(registry);
      StatusScopedDiagnosticHandler statusHandler(&context,
                                                  /*propagate=*/true);
    
      // Import input_model to a MLIR module
      flatbuffers::FlatBufferBuilder input_builder;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model.cc

        denylisted_mlir_op_names.insert(TfLiteToMlir(entry));
      }
    
      DialectRegistry registry;
      registry.insert<mlir::TFL::TensorFlowLiteDialect>();
      MLIRContext context(registry);
      StatusScopedDiagnosticHandler statusHandler(&context,
                                                  /*propagate=*/true);
    
      OwningOpRef<mlir::ModuleOp> module = tflite::FlatBufferToMlir(
          model_buffer, &context, UnknownLoc::get(&context));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops.cc

      } else {
        AddNonTPULowerClusterToRuntimeOpsPassPipeline(runtime_lowering,
                                                      module_name);
      }
    
      mlir::StatusScopedDiagnosticHandler diag_handler(
          module.getContext(), /*propagate=*/false,
          /*filter_stack=*/!VLOG_IS_ON(1));
    
      if (VLOG_IS_ON(1) ||
          DEBUG_DATA_DUMPER()->ShouldDump(module_name.str(), kDebugGroupMain)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top