Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for resultCh (0.48 sec)

  1. tensorflow/cc/experimental/libtf/tests/function_test.cc

    }
    
    template <typename T>
    void ExpectEquals(AbstractTensorHandle* t, T expected) {
      TF_Tensor* result_t;
      Status s = tensorflow::GetValue(t, &result_t);
      ASSERT_TRUE(s.ok()) << s.message();
      auto value = static_cast<T*>(TF_TensorData(result_t));
      EXPECT_EQ(*value, expected);
      TF_DeleteTensor(result_t);
    }
    
    // TODO(srbs): Add tests for captures.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/settings.md

            execute ->> code: gib das Resultat zurück
        end
    
        rect rgba(0, 255, 0, .1)
            code ->> function: say_hi(name="Rick", salutation="Mr.")
            function ->> execute: führe Code der Funktion aus
            execute ->> code: gib das Resultat zurück
        end
    
        rect rgba(0, 255, 255, .1)
            code ->> function: say_hi(name="Rick")
            function ->> code: gib das gespeicherte Resultat zurück
        end
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:17:14 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    	var (
    		calledWithToken []string
    
    		resultUsers map[string]user.Info
    		resultOk    bool
    		resultErr   error
    	)
    	fakeAuth := authenticator.TokenFunc(func(ctx context.Context, token string) (*authenticator.Response, bool, error) {
    		calledWithToken = append(calledWithToken, token)
    		return &authenticator.Response{User: resultUsers[token]}, resultOk, resultErr
    	})
    	fakeClock := testingclock.NewFakeClock(time.Now())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TF_DeleteAbstractTensor(at);
    
      // Verify the results.
      ASSERT_EQ(1, TF_OutputListNumOutputs(o));
      TF_AbstractTensor* result = TF_OutputListGet(o, 0);
      TFE_TensorHandle* result_t =
          TF_AbstractTensorGetEagerTensor(result, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TF_Tensor* result_tensor = TFE_TensorHandleResolve(result_t, status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 39.1K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi_test.go

    	for _, testcase := range tests {
    		resultName, resultNs, err := getISCSISecretNameAndNamespace(testcase.spec, testcase.defaultNs)
    		if err != testcase.expectedError || resultName != testcase.expectedName || resultNs != testcase.expectedNs {
    			t.Errorf("%s failed: expected err=%v ns=%q name=%q, got %v/%q/%q", testcase.name, testcase.expectedError, testcase.expectedNs, testcase.expectedName,
    				err, resultNs, resultName)
    		}
    	}
    
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/discovery/token/token_test.go

    			}
    
    			// Return if an error is expected
    			if test.expectedError {
    				return
    			}
    
    			// Validate the resulted kubeconfig
    			kubeconfigBytes, err = clientcmd.Write(*kubeconfig)
    			if err != nil {
    				t.Fatalf("cannot marshal resulted kubeconfig %v", err)
    			}
    			if string(kubeconfigBytes) != expectedKubeconfig {
    				t.Error("unexpected kubeconfig")
    				diff := difflib.UnifiedDiff{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      EXPECT_THAT(
          attribute,
          AllOf(Eq(mlir::DenseElementsAttr::get(
                    mlir::RankedTensorType::get({1ULL << 35}, builder.getF32Type()),
                    42.0f)),
                ResultOf(IsSplat, IsTrue())));
    }
    
    TEST(ConvertTensorProtoTest, NonSplatTensor) {
      TensorProto proto = tensor::CreateTensorProto<float>(
          /*values=*/{1.0f, 2.0f, 3.0f, 4.0f}, /*shape=*/{2, 2});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. docs/fr/docs/async.md

    ```Python
    results = await some_library()
    ```
    Alors, déclarez vos *fonctions de chemins* avec `async def` comme ceci :
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    !!! note
        Vous pouvez uniquement utiliser `await` dans les fonctions créées avec `async def`.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Mar 31 23:52:53 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    //
    // errored
    //
    // Returns true if the authorization check resulted in an error.
    //
    //	<Decision>.errored() <bool>
    //
    // Examples:
    //
    //	authorizer.group('').resource('pods').namespace('default').check('create').errored() // Returns true if the authorization check resulted in an error
    //
    // error
    //
    // If the authorization check resulted in an error, returns the error. Otherwise, returns the empty string.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

      }
    
      // If there are no immutable states, use the result's state if it is the
      // only one result and has parameters propagated.
      if (op->getNumResults() == 1 && mutable_results_num == 1) {
        return mutable_states.back()->params;
      }
    
      // Use the first propagated state to quantize the rest operands and results.
      if (!mutable_states.empty()) return mutable_states.front()->params;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top