Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 386 for assertGet (0.23 sec)

  1. src/time/tick_test.go

    		noTick()
    
    		// Test that len sees an immediate tick arrive
    		// for Reset of timer in heap.
    		tim.Reset(1)
    		assertLen()
    		assertTick()
    
    		// Test that len sees an immediate tick arrive
    		// for Reset of timer NOT in heap.
    		tim.Stop()
    		drainAsync()
    		tim.Reset(1)
    		assertLen()
    		assertTick()
    	}
    
    	// Sleep long enough that a second tick must happen if this is a ticker.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/saved_model_bundle_test.cc

        TF_EXPECT_OK(Env::Default()->FileExists(asset_filepath));
    
        std::vector<Tensor> path_outputs;
        TF_ASSERT_OK(
            bundle.session->Run({}, {"filename_tensor:0"}, {}, &path_outputs));
        ASSERT_EQ(1, path_outputs.size());
    
        test::ExpectTensorEqual<tstring>(
            test::AsTensor<tstring>({"foo.txt"}, TensorShape({})), path_outputs[0]);
      }
    
      void CheckSavedModelBundle(const string& export_dir,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      absl::flat_hash_map<string, std::vector<string>> cluster_sets =
          GetClusterSets(*graph);
      ASSERT_EQ(cluster_sets.size(), 1);
      std::vector<string> expected_clustered_nodes = {"AssignmentW", "ReadR",
                                                      "ValueToAssignW"};
      ASSERT_EQ(cluster_sets.begin()->second, expected_clustered_nodes);
    }
    
    TEST(XlaCompilationTest, ResourcesClusteringDisallowed) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc

            expected->subgraph_metadata()->GetAs<SubgraphMetadata>(i);
        if (expected_subgraph_metadata->op_metadata() == nullptr &&
            result_subgraph_metadata->op_metadata() == nullptr) {
          return;
        }
        ASSERT_EQ(expected_subgraph_metadata->op_metadata()->size(),
                  result_subgraph_metadata->op_metadata()->size());
        for (int j = 0; j < expected_subgraph_metadata->op_metadata()->size();
             ++j) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. tensorflow/c/ops.h

    TF_CAPI_EXPORT extern int TF_ShapeInferenceContextRankKnown(
        TF_ShapeInferenceContext* ctx, TF_ShapeHandle* handle);
    
    // If <handle> has rank <rank>, or its rank is unknown, return OK and return the
    // shape with asserted rank in <*result>. Otherwise an error is placed into
    // `status`.
    TF_CAPI_EXPORT extern void TF_ShapeInferenceContextWithRank(
        TF_ShapeInferenceContext* ctx, TF_ShapeHandle* handle, int64_t rank,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  6. src/net/fd_fake.go

    	// so we cannot get access to the underlying IP address used by connections.
    	//
    	// However, listeners created by FileListener are of type *TCPListener,
    	// which can be asserted by a Go program. The (*TCPListener).Addr method
    	// documents that the returned value will be of type *TCPAddr, we satisfy
    	// the documented behavior by creating addresses of the expected type here.
    	switch net {
    	case "tcp":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/api_predicates.go

    // license that can be found in the LICENSE file.
    
    // This file implements exported type predicates.
    
    package types2
    
    // AssertableTo reports whether a value of type V can be asserted to have type T.
    //
    // The behavior of AssertableTo is unspecified in three cases:
    //   - if T is Typ[Invalid]
    //   - if V is a generalized interface; i.e., an interface that may only be used
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. src/go/types/api_predicates.go

    // license that can be found in the LICENSE file.
    
    // This file implements exported type predicates.
    
    package types
    
    // AssertableTo reports whether a value of type V can be asserted to have type T.
    //
    // The behavior of AssertableTo is unspecified in three cases:
    //   - if T is Typ[Invalid]
    //   - if V is a generalized interface; i.e., an interface that may only be used
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. tensorflow/c/kernels/summary_op_test.cc

      gtl::InlinedVector<TensorValue, 4> inputs;
      inputs.emplace_back(tags);
      inputs.emplace_back(values);
      params.inputs = inputs;
      OpKernelContext ctx(&params, 1);
      kernel->Compute(&ctx);
      ASSERT_EQ(expected_code, ctx.status().code());
      if (expected_code == error::OK) {
        Summary summary;
        ASSERT_TRUE(ParseProtoUnlimited(
            &summary, ctx.mutable_output(0)->scalar<tstring>()()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  10. tensorflow/cc/ops/while_loop_test.cc

        for (int i = 0; i < inputs_.size(); ++i) {
          feeds.emplace(inputs_[i], input_values[i]);
        }
    
        std::vector<Tensor> out_tensors;
        TF_ASSERT_OK(session.Run(feeds, outputs_, &out_tensors));
        ASSERT_EQ(out_tensors.size(), outputs_.size());
    
        DCHECK_EQ(expected_output_values.size(), out_tensors.size());
        for (int i = 0; i < out_tensors.size(); ++i) {
          test::ExpectTensorEqual<T>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 22:30:58 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top