Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 4,605 for expectGet (0.16 sec)

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

            /*device=*/""}});
    }
    
    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. tensorflow/compiler/jit/xla_launch_util_gpu_test.cc

          GetVariableSnapshots(variables),
          /*pjrt_client=*/pjrt_client_, /*pjrt_device=*/*pjrt_device,
          /*use_pjrt_tensor_buffer=*/true, &exec_args,
          /*owned_args=*/{}, &non_donatable_input_indices));
    
      EXPECT_EQ(exec_args.size(), 2);
    
      std::shared_ptr<xla::Literal> literal1 = *exec_args[0]->ToLiteralSync();
      EXPECT_TRUE(xla::LiteralTestUtil::Equal(
          *literal1, xla::LiteralUtil::CreateR2<int32_t>({{1, 2, 3}})));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

    #include "tensorflow/core/platform/stacktrace_handler.h"
    #include "tensorflow/core/platform/test.h"
    
    #define ASSERT_TF_OK(x) ASSERT_EQ(TF_OK, TF_GetCode(x)) << TF_Message(x)
    #define EXPECT_TF_OK(x) EXPECT_EQ(TF_OK, TF_GetCode(x)) << TF_Message(x)
    
    static const char* content = "abcdefghijklmnopqrstuvwxyz1234567890";
    // We will work with content_view instead of content.
    static const absl::string_view content_view = content;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 31 12:04:23 UTC 2020
    - 24.9K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/math_grad_test.cc

        TF_EXPECT_OK(
            session.Run({{x, {-3.0f, 0.0f, 3.0f}}}, grad_outputs, &grad_result));
        EXPECT_EQ(grad_result.size(), 1);
        EXPECT_EQ(grad_result[0].NumElements(), 3);
        EXPECT_EQ(grad_result[0].flat<float>()(0), 0.0f);
        EXPECT_EQ(grad_result[0].flat<float>()(1), 0.0f);
        EXPECT_EQ(grad_result[0].flat<float>()(2), 0.0f);
      }
    }
    
    TEST_F(NaryGradTest, SquaredDifference) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      root.graph()->AddControlEdge(call, write_op);
    
      std::unique_ptr<Graph> graph;
      Status failure_status = BuildXlaOps(root, fdef_lib, &graph);
      ASSERT_FALSE(failure_status.ok());
      EXPECT_EQ(failure_status.code(), error::INVALID_ARGUMENT);
    }
    
    TEST_F(BuildXlaOpsTest, OnNonXlaDevice) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      FunctionDefLibrary fdef_lib =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/metrics_test.cc

      EXPECT_EQ(SavedModelReadApi("bar").value(), 1);
      SavedModelReadCount("2").IncrementBy(1);
      EXPECT_EQ(SavedModelReadCount("2").value(), 1);
    
      SavedModelReadApi("baz").IncrementBy(1);
      EXPECT_EQ(SavedModelReadApi("baz").value(), 1);
      SavedModelReadCount("2").IncrementBy(1);
      EXPECT_EQ(SavedModelReadCount("2").value(), 2);
    }
    
    TEST(MetricsTest, TestCheckpointRead) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/cc/framework/scope_test.cc

      const auto names1 = LinearOp(root);
    
      EXPECT_EQ(names1[0], "linear/mul");
      EXPECT_EQ(names1[1], "linear/bias_add");
      EXPECT_EQ(names1[2], "linear/c1");
      EXPECT_EQ(names1[3], "linear/mul_1");
      EXPECT_EQ(names1[4], "linear");
    
      EXPECT_EQ(root.GetUniqueNameForOp("linear"), "linear_1");
    
      const auto names2 = LinearOp(root);
    
      EXPECT_EQ(names2[0], "linear_2/mul");
      EXPECT_EQ(names2[1], "linear_2/bias_add");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 08:17:37 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 1);
      EXPECT_EQ(num_compute_calls, 2);
      cache2.LookupOrCompute("c", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 2);
      EXPECT_EQ(num_compute_calls, 3);
      cache2.LookupOrCompute("d", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 3);
      EXPECT_EQ(num_compute_calls, 4);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 09 19:31:22 UTC 2020
    - 7.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc

      std::optional<CalibrationStatistics> statistics = collector.GetStatistics();
    
      EXPECT_TRUE(statistics.has_value());
      EXPECT_EQ(statistics.value().average_min_max_statistics().min_sum(), -4.0f);
      EXPECT_EQ(statistics.value().average_min_max_statistics().max_sum(), 15.0f);
      EXPECT_EQ(statistics.value().average_min_max_statistics().num_samples(), 2);
    }
    
    TEST(CalibrationStatisticsCollectorTest, ClearDataAndGetResultsMinMax) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishHttpIntegTest.groovy

                }
            """
    
            and:
            module.jar.expectPut()
            module.jar.sha1.expectPut()
            module.jar.sha256.expectPut()
            module.jar.sha512.expectPut()
            module.ivy.expectPut()
            module.ivy.sha1.expectPut()
            module.ivy.sha256.expectPut()
            module.ivy.sha512.expectPut()
    
            when:
            run 'publish'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 21.8K bytes
    - Viewed (0)
Back to top