Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,631 for yield (0.1 sec)

  1. guava/src/com/google/common/hash/HashFunction.java

     *       always returns zero could be called a hash function. It is not.)
     * </ul>
     *
     * <p>Summarizing the last two points: "equal yield equal <i>always</i>; unequal yield unequal
     * <i>often</i>." This is the most important characteristic of all hash functions.
     *
     * <h3>Desirable properties</h3>
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/sql-databases.md

        我们将`SessionLocal()`请求的创建和处理放在一个`try`块中。
    
        然后我们在finally块中关闭它。
    
        通过这种方式,我们确保数据库会话在请求后始终关闭。即使在处理请求时出现异常。
    
        但是您不能从退出代码中引发另一个异常(在yield之后)。可以查阅 [Dependencies with yield and HTTPException](https://fastapi.tiangolo.com/zh/tutorial/dependencies/dependencies-with-yield/#dependencies-with-yield-and-httpexception)
    
    *然后,当在路径操作函数*中使用依赖项时,我们使用`Session`,直接从 SQLAlchemy 导入的类型声明它。
    
    *这将为我们在路径操作函数*中提供更好的编辑器支持,因为编辑器将知道`db`参数的类型`Session`:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue May 07 21:00:22 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  3. src/runtime/runtime-gdb.py

    					if b['tophash'][i] != 0:
    						k = b['keys'][i]
    						v = b['values'][i]
    						if flags & 1:
    							k = k.dereference()
    						if flags & 2:
    							v = v.dereference()
    						yield str(cnt), k
    						yield str(cnt + 1), v
    						cnt += 2
    				bp = b['overflow']
    
    
    class ChanTypePrinter:
    	"""Pretty print chan[T] types.
    
    	Chan-typed go variables are really pointers. dereference them in gdb
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

            np.random.uniform(low=-1.0, high=1.0, size=(1, 4)).astype('f4')
            for _ in range(num_samples)
        ]
    
        def data_gen() -> repr_dataset.RepresentativeDataset:
          for sample in samples:
            yield {'input_tensor': ops.convert_to_tensor(sample)}
    
        with self.session() as sess:
          new_repr_ds = repr_dataset.replace_tensors_by_numpy_ndarrays(
              data_gen(), sess
          )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/canonicalize.mlir

        "tfl.yield"(%test) : (tensor<i1>) -> ()
      },  {
      ^bb0(%arg2: tensor<i32>, %arg3: tensor<f32>):
        %cst = arith.constant dense<22.0> : tensor<f32>
        %stride = arith.constant dense<1> : tensor<i32>
        %inc = tfl.add %arg2, %stride {fused_activation_function = "NONE"} : tensor<i32>
        "tfl.yield"(%inc, %cst) : (tensor<i32>, tensor<f32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

      for (Value value : extern_values) {
        auto arg = block.addArgument(value.getType(), loc);
        replaceAllUsesInRegionWith(value, arg, func_region);
        new_args.push_back(arg);
      }
    
      // Replace yield op with return.
      Operation* yield_op = outlined_func.getBody().front().getTerminator();
      OpBuilder b(yield_op);
      llvm::SmallVector<Value, 4> args;
      auto loop_carried_yield_operands =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. cni/pkg/install/install.go

    	// at this moment, and if not, yield. This is to catch other CNIs which might have mutated the file between
    	// the (theoretical) window after we initially install/write, but before we actually start the filewatch.
    	if err := checkValidCNIConfig(in.cfg, in.cniConfigFilepath); err != nil {
    		return nil
    	}
    
    	// If a file we are watching has a change event, yield and let caller check validity
    	select {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/convert-tf-quant-types.mlir

      // CHECK-NEXT:   "tf.Yield"(%arg1) : (tensor<1xi8>) -> ()
      // CHECK-NEXT:   }, {
      // CHECK-NEXT:   "tf.Yield"(%arg2) : (tensor<1xi8>) -> ()
      // CHECK-NEXT:  }) : (tensor<i1>) -> tensor<1xi8>
      // CHECK-NEXT: return %0 : tensor<1xi8>
      %0 = "tf.IfRegion"(%arg0) <{is_stateless = false}> ({
        "tf.Yield"(%arg1) : (tensor<1x!tf_type.qint8>) -> ()
        }, {
        "tf.Yield"(%arg2) : (tensor<1x!tf_type.qint8>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/DefaultProjectSchemaProvider.kt

        get() = sequence {
    
            yield(this@ancestorClassesIncludingSelf)
    
            var superclass: Class<*>? = superclass
            while (superclass != null) {
                val thisSuperclass: Class<*> = superclass
                val nextSuperclass = thisSuperclass.superclass
                if (nextSuperclass != null) { // skip java.lang.Object
                    yield(thisSuperclass)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/fmt/doc.go

    will use arguments n+1, n+2, etc. unless otherwise directed.
    
    For example,
    
    	fmt.Sprintf("%[2]d %[1]d\n", 11, 22)
    
    will yield "22 11", while
    
    	fmt.Sprintf("%[3]*.[2]*[1]f", 12.0, 2, 6)
    
    equivalent to
    
    	fmt.Sprintf("%6.2f", 12.0)
    
    will yield " 12.00". Because an explicit index affects subsequent verbs,
    this notation can be used to print the same values multiple times
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top