Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for create_model (0.29 sec)

  1. fastapi/exceptions.py

                    """
                ),
            ] = None,
        ) -> None:
            super().__init__(code=code, reason=reason)
    
    
    RequestErrorModel: Type[BaseModel] = create_model("Request")
    WebSocketErrorModel: Type[BaseModel] = create_model("WebSocket")
    
    
    class FastAPIError(RuntimeError):
        """
        A generic, FastAPI-specific error.
        """
    
    
    class ValidationException(Exception):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. fastapi/utils.py

        PydanticSchemaGenerationError,
        Undefined,
        UndefinedType,
        Validator,
        lenient_issubclass,
    )
    from fastapi.datastructures import DefaultPlaceholder, DefaultType
    from pydantic import BaseModel, create_model
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal
    
    if TYPE_CHECKING:  # pragma: nocover
        from .routing import APIRoute
    
    # Cache for `create_cloned_field`
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. fastapi/_compat.py

        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi.exceptions import RequestErrorModel
    from fastapi.types import IncEx, ModelNameMap, UnionType
    from pydantic import BaseModel, create_model
    from pydantic.version import VERSION as P_VERSION
    from starlette.datastructures import UploadFile
    from typing_extensions import Annotated, Literal, get_args, get_origin
    
    # Reassign variable to make it reexported for mypy
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  4. hack/make-rules/test-cmd.sh

    # and name get wiped, there were be no field managers tracking any fields.
    #
    # Exports:
    #   SUPPORTED_RESOURCES(Array of all resources supported by the apiserver).
    function create_node() {
      kubectl create -f - << __EOF__
    {
      "kind": "Node",
      "apiVersion": "v1",
      "metadata": {
        "name": "127.0.0.1",
        "annotations": {
          "save-managers": "true"
        }
      },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 09:10:14 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    		sa = makeInheritSa()
    	}
    	var createmode uint32
    	switch {
    	case mode&(O_CREAT|O_EXCL) == (O_CREAT | O_EXCL):
    		createmode = CREATE_NEW
    	case mode&(O_CREAT|O_TRUNC) == (O_CREAT | O_TRUNC):
    		createmode = CREATE_ALWAYS
    	case mode&O_CREAT == O_CREAT:
    		createmode = OPEN_ALWAYS
    	case mode&O_TRUNC == O_TRUNC:
    		createmode = TRUNCATE_EXISTING
    	default:
    		createmode = OPEN_EXISTING
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	}
    	return
    }
    
    func CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile Handle) (handle Handle, err error) {
    	r0, _, e1 := syscall.Syscall9(procCreateFileW.Addr(), 7, uintptr(unsafe.Pointer(name)), uintptr(access), uintptr(mode), uintptr(unsafe.Pointer(sa)), uintptr(createmode), uintptr(attrs), uintptr(templatefile), 0, 0)
    	handle = Handle(r0)
    	if handle == InvalidHandle {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/schema/schema_generated.h

      return tflite::CreateModel(
          _fbb,
          version,
          operator_codes__,
          subgraphs__,
          description__,
          buffers__,
          metadata_buffer__,
          metadata__,
          signature_defs__);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        // index in the subgraph list.
        ++subgraph_index;
      }
      auto signature_defs = CreateSignatureDefs(signature_defs_vec);
    
      auto model = tflite::CreateModel(builder_, TFLITE_SCHEMA_VERSION,
                                       builder_.CreateVector(opcodes_),
                                       builder_.CreateVector(subgraphs_),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top