Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 104 for internalError (0.29 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial008d.py

        assert response.status_code == 200, response.text
        assert response.json() == "plumbus"
    
    
    def test_internal_error(client: TestClient):
        from docs_src.dependencies.tutorial008d import InternalError
    
        with pytest.raises(InternalError) as exc_info:
            client.get("/items/portal-gun")
        assert (
            exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick"
        )
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/errors.go

    	// ErrorTypeInvalid is used to report malformed values
    	ErrorTypeInvalid ErrorType = "RuleInvalid"
    	// ErrorTypeInternal is used to report other errors that are not related
    	// to user input.  See InternalError().
    	ErrorTypeInternal ErrorType = "InternalError"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

      if (av_tensor == nullptr || av_tensor->GetBuffer() == nullptr) {
        return absl::InternalError("Input tensor does not have PjRtBuffer.");
      }
      auto* c_api_buffer =
          dynamic_cast<xla::PjRtCApiBuffer*>(av_tensor->GetBuffer().get());
      if (c_api_buffer == nullptr) {
        return absl::InternalError(
            "The PjRtBuffer in the tensor is not type PjRtCApiBuffer.");
      }
      return c_api_buffer->c_buffer();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

                                              absl::MakeSpan(exported_names),
                                              context, import_options, &bundle);
      if (!module.status().ok()) {
        return absl::InternalError(absl::StrCat("Failed to import SavedModel: ",
                                                module.status().message()));
      }
    
      mlir::OwningOpRef<mlir::ModuleOp> module_ref = std::move(module).value();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinProjectScriptTemplate.kt

    import org.gradle.kotlin.dsl.support.DefaultKotlinScript
    import org.gradle.kotlin.dsl.support.KotlinScriptHost
    import org.gradle.kotlin.dsl.support.defaultKotlinScriptHostForProject
    import org.gradle.kotlin.dsl.support.internalError
    import org.gradle.kotlin.dsl.support.invalidPluginsCall
    import org.gradle.plugin.use.PluginDependenciesSpec
    import kotlin.script.experimental.annotations.KotlinScript
    import kotlin.script.experimental.api.baseClass
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/Exceptions.kt

        IllegalArgumentException(
            "Element '$name' of type '${actualType.java.name}' from container '$container' cannot be cast to '${expectedType.qualifiedName}'."
        )
    
    
    internal
    fun internalError(): Nothing =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial008d_an_py39.py

        assert response.json() == "plumbus"
    
    
    @needs_py39
    def test_internal_error(client: TestClient):
        from docs_src.dependencies.tutorial008d_an_py39 import InternalError
    
        with pytest.raises(InternalError) as exc_info:
            client.get("/items/portal-gun")
        assert (
            exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick"
        )
    
    
    @needs_py39
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinBuildScript.kt

    import org.gradle.api.initialization.dsl.ScriptHandler
    import org.gradle.kotlin.dsl.resolver.KotlinBuildScriptDependenciesResolver
    import org.gradle.kotlin.dsl.support.KotlinScriptHost
    import org.gradle.kotlin.dsl.support.internalError
    import org.gradle.kotlin.dsl.support.invalidPluginsCall
    import org.gradle.plugin.use.PluginDependenciesSpec
    import kotlin.script.extensions.SamWithReceiverAnnotations
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 19:59:56 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.cc

    namespace stablehlo::quantization::io {
    
    absl::StatusOr<std::string> GetLocalTmpFileName(tsl::Env* const env) {
      std::string tmp_fname{};
      if (!env->LocalTempFilename(&tmp_fname)) {
        return absl::InternalError("Failed to create tmp file name.");
      }
    
      return tmp_fname;
    }
    
    absl::StatusOr<std::string> GetLocalTmpFileName() {
      return GetLocalTmpFileName(tsl::Env::Default());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

                                tpu::TPUCompileMetadataProto& metadata_proto) {
      auto main_fn = module.lookupSymbol<mlir::func::FuncOp>(kEntryFuncName);
      if (!main_fn) {
        return absl::InternalError("Could not find main function in MLIR Module.");
      }
    
      mlir::FunctionType func_type = main_fn.getFunctionType();
      for (auto input_type : func_type.getInputs()) {
        tensorflow::TensorShape tensor_shape;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top