Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for StatusScopedDiagnosticHandler (0.61 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf.cc

      bridge.enableVerifier();
      ::tensorflow::applyTensorflowAndCLOptions(bridge);
    
      // Populate a passmanager with the list of passes that implement the bridge.
      pipeline_builder(bridge);
    
      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: Thu Mar 28 22:25:18 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

        const bool deserialize_xla_call_module,
        llvm::ArrayRef<llvm::ArrayRef<int64_t>> input_arg_shapes) {
      mlir::PassManager pm_before_freezing_variables(context);
      mlir::StatusScopedDiagnosticHandler statusHandler(module_op.getContext(),
                                                        /*propagate=*/true);
    
      mlir::TF::StandardPipelineOptions standard_pipeline_options;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

                llvm::ArrayRef<int64_t>(&shape_backing[start], offset - start));
          }
        }
      }
    
      auto main_func = module.lookupSymbol<mlir::func::FuncOp>("main");
    
      mlir::StatusScopedDiagnosticHandler error_handler(module.getContext());
      mlir::LogicalResult result = mlir::TF::InferShapeForFunction(
          main_func, arg_shapes_copy, producer_version);
    
      if (failed(result)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

      manager.addNestedPass<mlir::func::FuncOp>(
          mlir::CreateFunctionalToExecutorDialectConversionPass());
      manager.addPass(mlir::CreateBreakUpIslandsPass());
    
      mlir::StatusScopedDiagnosticHandler diag_handler(module.getContext());
    
      if (VLOG_IS_ON(2)) {
        llvm::StringRef module_name = llvm::StringRef();
        constexpr const char* kDebugGroupBridgePhase2 =
            "v1_prepare_and_export_to_library";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      pm.addPass(CreateBreakUpIslandsPass());
    
      // In case of failure, the `diag_handler` converts MLIR errors emitted to
      // the MLIRContext into a tensorflow::Status.
      StatusScopedDiagnosticHandler diag_handler(func_.getContext());
      LogicalResult result = pm.run(func_->getParentOfType<ModuleOp>());
      (void)result;
      TF_RETURN_IF_ERROR(diag_handler.ConsumeStatus());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

                              std::unique_ptr<Graph>* graph,
                              FunctionLibraryDefinition* flib_def,
                              absl::flat_hash_set<Node*>* control_ret_nodes) {
      mlir::StatusScopedDiagnosticHandler sh(module.getContext());
      if (failed(VerifyExportSuitable(module))) return sh.ConsumeStatus();
      return sh.Combine(
          Exporter::Convert(module, configs, graph, flib_def, control_ret_nodes));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

                              std::unique_ptr<Graph>* graph,
                              FunctionLibraryDefinition* flib_def,
                              absl::flat_hash_set<Node*>* control_ret_nodes) {
      mlir::StatusScopedDiagnosticHandler sh(module.getContext());
      if (failed(VerifyExportSuitable(module))) return sh.ConsumeStatus();
      return sh.Combine(
          Exporter::Convert(module, configs, graph, flib_def, control_ret_nodes));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top