Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,062 for yield (0.04 sec)

  1. src/internal/trace/base.go

    func (d *dataTable[EI, E]) forEach(yield func(EI, E) bool) bool {
    	for id, value := range d.dense {
    		if d.present[id/8]&(uint8(1)<<(id%8)) == 0 {
    			continue
    		}
    		if !yield(EI(id), value) {
    			return false
    		}
    	}
    	if d.sparse == nil {
    		return true
    	}
    	for id, value := range d.sparse {
    		if !yield(id, value) {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK:   %[[MUL:.*]] = "tf.Mul"(%[[ARG0]], %[[ARG1]])
      // CHECK:   "tf.Yield"(%[[MUL]]) : (tensor<f32>)
      // CHECK:  },  {
      // CHECK:    %[[SUB:.*]] = "tf.Sub"(%[[ARG0]], %[[ARG1]])
      // CHECK:    "tf.Yield"(%[[SUB]]) : (tensor<f32>)
      // CHECK:  },  {
      // CHECK:    %[[ADD:.*]] = "tf.AddV2"(%[[ARG0]], %[[ARG1]])
      // CHECK:    "tf.Yield"(%[[ADD]]) : (tensor<f32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py

        static_dir: Path = Path(os.getcwd()) / "static"
        print(static_dir)
        static_dir.mkdir(exist_ok=True)
        from docs_src.custom_docs_ui.tutorial001 import app
    
        with TestClient(app) as client:
            yield client
        static_dir.rmdir()
    
    
    def test_swagger_ui_html(client: TestClient):
        response = client.get("/docs")
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

        corruptor()
    
        return client.newCall(request).execute()
      }
    
      /**
       * @param delta the offset from the current date to use. Negative values yield dates in the past;
       *     positive values yield dates in the future.
       */
      private fun formatDate(
        delta: Long,
        timeUnit: TimeUnit,
      ): String? {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. 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)
  6. tests/test_dependency_normal_exceptions.py

    initial_state = {"except": False, "finally": False}
    
    state = initial_state.copy()
    
    app = FastAPI()
    
    
    async def get_database():
        temp_database = fake_database.copy()
        try:
            yield temp_database
            fake_database.update(temp_database)
        except HTTPException:
            state["except"] = True
            raise
        finally:
            state["finally"] = True
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. 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)
  8. subprojects/core/src/main/java/org/gradle/internal/operations/notify/BuildOperationNotificationListenerRegistrar.java

    /**
     * Mechanism by which the scan plugin registers for notifications.
     * <p>
     * One instance of this exists per build tree.
     * Only one listener may register.
     * Subsequent attempts yield exceptions.
     *
     * @since 4.0
     */
    @UsedByScanPlugin("obtained from the root build's root project's service registry")
    @ServiceScope(Scope.CrossBuildSession.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

                  while (!shutdown.get()) {
                    interruptee.interrupt();
                    Thread.yield();
                  }
                }
              });
          this.shutdown = shutdown;
          start();
        }
    
        void shutdown() {
          shutdown.set(true);
          while (this.isAlive()) {
            Thread.yield();
          }
        }
      }
    
      void assertWrapsInterruptedException(RuntimeException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. 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)
Back to top