Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for TEST_P (0.69 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

                "/a/path/to/a/file");
    }
    
    TEST_P(ModularFileSystemTest, TestCreateFile) {
      const std::string filepath = GetURIForPath("a_file");
      std::unique_ptr<WritableFile> new_file;
      Status status = env_->NewWritableFile(filepath, &new_file);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    }
    
    TEST_P(ModularFileSystemTest, TestCreateFileNonExisting) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 20:25:58 UTC 2022
    - 71K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/libtf/tests/function_test.cc

      EXPECT_EQ(*value, expected);
      TF_DeleteTensor(result_t);
    }
    
    // TODO(srbs): Add tests for captures.
    // TODO(srbs): Add tests for polymorphism (different shapes and dtypes).
    TEST_P(FunctionTest, Square) {
      // Construct a scalar.
      impl::TaggedValueTensor x = CreateScalarTensor<float, TF_FLOAT>(2.0f);
      FunctionDef fdef = SquareFunc();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  3. tensorflow/cc/experimental/libtf/tests/runtime_test.cc

      EXPECT_EQ(out_val[0], 5.0f);
    }
    
    TEST_P(RuntimeTest, CreateHostTensorIncompatibleShape) {
      Runtime runtime = RuntimeTest::GetParam()();
      EXPECT_THAT(runtime.CreateHostTensor<float>({2}, TF_FLOAT, {2.0f}),
                  StatusIs(absl::StatusCode::kInvalidArgument,
                           HasSubstr("Mismatched shape and data size")));
    }
    
    TEST_P(RuntimeTest, CreateHostTensorNonFullyDefinedShapeRaises) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 09 12:27:54 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/gradients/math_grad_test.cc

      GradientRegistry registry_;
      Status status_;
    
     public:
      bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; }
      bool UseFunction() const { return std::get<2>(GetParam()); }
    };
    
    TEST_P(CppGradients, TestAddGrad) {
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), 2.0f, &x_raw);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 17:32:14 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    };
    
    // Sanity check that constructing a tensorflow::Variable from a SavedVariable
    // 1. does not cause an error
    // 2. preserves dtype and shape.
    TEST_P(SavedVariableLoadingTest, LoadSavedVariableSuccessful) {
      auto& test_params = GetParam();
      DataType dtype = std::get<0>(test_params);
      TensorShape shape(std::get<1>(test_params));
    
      SavedVariable saved_variable;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-param-test.h.pump

      // You can implement all the usual class fixture members here.
    };
    
    // Then, use the TEST_P macro to define as many parameterized tests
    // for this fixture as you want. The _P suffix is for "parameterized"
    // or "pattern", whichever you prefer to think.
    
    TEST_P(FooTest, DoesBlah) {
      // Inside a test, access the test parameter with the GetParam() method
      // of the TestWithParam<T> class:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/unified_api_test.cc

      if (shape.dims() != 0) {
        return errors::InvalidArgument(
            "Tensor expected to have scalar shape found rank: ", shape.dims());
      }
      return absl::OkStatus();
    }
    
    TEST_P(UnifiedAPI, TestTensorShapeScalar) {
      if (UseFunction() && UseMlir()) {
        // TODO(b/173074167): Remove this.
        GTEST_SKIP() << "MlirTensor::Shape is not implemented yet.";
      }
      AbstractContextPtr ctx;
      {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-param-test.h.pump

      // You can implement all the usual class fixture members here.
    };
    
    // Then, use the TEST_P macro to define as many parameterized tests
    // for this fixture as you want. The _P suffix is for "parameterized"
    // or "pattern", whichever you prefer to think.
    
    TEST_P(FooTest, DoesBlah) {
      // Inside a test, access the test parameter with the GetParam() method
      // of the TestWithParam<T> class:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_unified_experimental_test.cc

        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
        Status s = StatusFromTF_Status(status.get());
        CHECK_EQ(errors::OK, s.code()) << s.message();
      }
    };
    
    TEST_P(UnifiedCAPI, TestBasicEager) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_ContextOptions* opts = TFE_NewContextOptions();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 39.1K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    // https://github.com/google/googletest/blob/dcc92d0ab6c4ce022162a23566d44f673251eee4/googletest/docs/advanced.md#value-parameterized-tests
    class CSavedModelAPITest : public ::testing::TestWithParam<bool> {};
    
    TEST_P(CSavedModelAPITest, LoadsSavedModelWithTags) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      bool use_tfrt = GetParam();
      if (use_tfrt) {
        TFE_DeleteContextOptions(opts);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top