Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for error_handler (0.31 sec)

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

      // error reporting system.
      mlir::StatusScopedDiagnosticHandler error_handler(mlir_context);
    
      // Parse the module.
      *mlir_module = mlir::parseSourceString<mlir::ModuleOp>(serialized_mlir_module,
                                                             mlir_context);
      if (!*mlir_module)
        return error_handler.Combine(
            errors::InvalidArgument("could not parse MLIR module"));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      mlir::StatusScopedDiagnosticHandler error_handler(module.getContext());
      mlir::LogicalResult result = mlir::TF::InferShapeForFunction(
          main_func, arg_shapes_copy, producer_version);
    
      if (failed(result)) {
        return error_handler.Combine(
            errors::Internal("MLIR Shape refinement failed"));
      }
      return error_handler.ConsumeStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

        return tensorflow::errors::Aborted(
            "Failed to apply MLIR pass manager CL options.");
      }
    
      auto error_handler = [&](const Twine& msg) {
        emitError(UnknownLoc::get(pm.getContext())) << msg;
        return failure();
      };
      if (failed(pass_pipeline.addToPipeline(pm, error_handler))) {
        return tensorflow::errors::Aborted("Failed to add passes to pipeline.");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    }
    }  // namespace
    
    LogicalResult ReshapeOp::verify() {
      ReshapeOp op = *this;
      auto error_handler = [&op](const llvm::Twine &message) -> LogicalResult {
        return op.emitOpError() << message;
      };
      TensorType expected_ty;
      if (failed(GetReshapeOutputType(op.getTensor(), op.getShape(), error_handler,
                                      expected_ty)))
        return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      return success();
    }
    
    mlir::LogicalResult ReshapeOp::verify() {
      ReshapeOp op = *this;
      auto error_handler = [&op](const llvm::Twine& message) -> LogicalResult {
        return op.emitOpError() << message;
      };
      TensorType expected_ty;
      if (failed(GetReshapeOutputType(op.getInput(), op.getShape(), error_handler,
                                      expected_ty)))
        return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

    }
    
    template <typename T>
    static bool HasValidTFLiteType(Value value, T& error_handler) {
      // None type is allowed to represent unspecified operands.
      if (mlir::isa<NoneType>(value.getType())) return true;
    
      auto type = mlir::dyn_cast<TensorType>(value.getType());
      if (!type) {
        if (auto op = value.getDefiningOp()) {
          error_handler.emitError()
              << '\'' << op << "' should produce value of tensor type instead of "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go

    		panic("test")
    	}()
    	if result != "test" {
    		t.Errorf("did not receive custom handler")
    	}
    }
    
    func TestCustomHandleError(t *testing.T) {
    	old := ErrorHandlers
    	defer func() { ErrorHandlers = old }()
    	var result error
    	ErrorHandlers = []ErrorHandler{
    		func(_ context.Context, err error, msg string, keysAndValues ...interface{}) {
    			result = err
    		},
    	}
    	err := fmt.Errorf("test")
    	HandleError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    	}
    }
    
    // ErrorHandlers is a list of functions which will be invoked when a nonreturnable
    // error occurs.
    // TODO(lavalamp): for testability, this and the below HandleError function
    // should be packaged up into a testable and reusable object.
    var ErrorHandlers = []ErrorHandler{
    	logError,
    	func(_ context.Context, _ error, _ string, _ ...interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. pkg/util/filesystem/watcher.go

    	return w.watcher.Add(path)
    }
    
    func (w *fsnotifyWatcher) Init(eventHandler FSEventHandler, errorHandler FSErrorHandler) error {
    	var err error
    	w.watcher, err = fsnotify.NewWatcher()
    	if err != nil {
    		return err
    	}
    
    	w.eventHandler = eventHandler
    	w.errorHandler = errorHandler
    	return nil
    }
    
    func (w *fsnotifyWatcher) Run() {
    	go func() {
    		defer w.watcher.Close()
    		for {
    			select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. pilot/pkg/xds/debug_test.go

    	attempts := 5
    	for i := 0; i < attempts; i++ {
    		gotStatus := getSyncStatus(t, s)
    		var errorHandler func(string, ...any)
    		if i == attempts-1 {
    			errorHandler = t.Errorf
    		} else {
    			errorHandler = t.Logf
    		}
    		for _, ss := range gotStatus {
    			if ss.ProxyID == nodeID {
    				if ss.ProxyVersion == "" {
    					errorHandler("ProxyVersion should always be set for %v", nodeID)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top