Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for test_1 (0.16 sec)

  1. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

    using ::testing::IsNull;
    using ::testing::Ne;
    using ::testing::NotNull;
    using ::testing::Test;
    
    class CreateI8F32UniformQuantizedTypeTest : public Test {
     protected:
      CreateI8F32UniformQuantizedTypeTest() : ctx_() {
        ctx_.loadDialect<quant::QuantizationDialect>();
      }
    
      MLIRContext ctx_;
    };
    
    TEST_F(CreateI8F32UniformQuantizedTypeTest, I8StorageTypeSucceeds) {
      const UniformQuantizedType quantized_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      EXPECT_TRUE(failed(TryCast<DotGeneralOp>(nullptr, /*name=*/"nullptr")));
    }
    
    TEST_F(AttrsAndConstraintsTest, I64ValueInI32RangeAreCastedCorrectly) {
      EXPECT_TRUE(succeeded(CastI64ToI32(llvm::minIntN(32))));
      EXPECT_TRUE(succeeded(CastI64ToI32(llvm::maxIntN(32))));
    }
    
    TEST_F(AttrsAndConstraintsTest, CastingFailsForI64ValueOutOfI32Range) {
      EXPECT_TRUE(failed(CastI64ToI32(llvm::minIntN(32) - 10)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

    #include "xla/stream_executor/stream_executor.h"
    #include "tensorflow/core/lib/core/status_test_util.h"
    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/protobuf/error_codes.pb.h"
    #include "tsl/platform/statusor.h"
    
    namespace stream_executor {
    namespace {
    
    /*** Registration tests ***/
    TEST(StreamExecutor, SuccessfulRegistration) {
      auto plugin_init = [](SE_PlatformRegistrationParams* const params,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

    using ::testing::ElementsAre;
    using ::testing::HasSubstr;
    using ::testing::Key;
    using ::testing::SizeIs;
    using ::tsl::testing::StatusIs;
    
    class CalibrationStatisticsSaverTest : public OpsTestBase {};
    
    TEST_F(CalibrationStatisticsSaverTest, MissingOutputPath) {
      std::vector<std::string> ids{"1"};
      std::vector<int32_t> calibration_methods{
          CalibrationOptions::CALIBRATION_METHOD_AVERAGE_MIN_MAX};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. tensorflow/c/while_loop_test.cc

    //               "output(s)");
    // }
    
    // TODO(skyewm): test bad body output shape
    
    TEST_F(CApiWhileLoopTest, NullName) {
      Init(1);
      CreateCondGraph();
      params_->body_outputs[0] = params_->body_inputs[0];
      params_->name = nullptr;
      ExpectError(TF_INVALID_ARGUMENT, "TF_WhileParams `name` field is null");
    }
    
    TEST_F(CApiWhileLoopTest, WrongGraph) {
      Init(1);
      CreateCondGraph();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

      ASSERT_FALSE(xla_call_module_ops.empty());
    
      // Test that `GetQuantizationMethod` returns a valid `Method` corresponding to
      // `"no_quantization {}"`.
      const absl::StatusOr<Method> method =
          GetQuantizationMethod(*xla_call_module_ops.begin());
      ASSERT_THAT(method, IsOk());
      EXPECT_TRUE(method->has_no_quantization());
    }
    
    TEST_F(LiftAsFunctionCallTest,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

    };
    
    // This should only have unit tests. End to end tests should be done with
    // FILECHECK and MLIR tests.
    class Tf2XlaRewriterTest : public ::testing::Test {
     public:
      void SetUp() override {
        tensorflow::XlaOpRegistry::RegisterCompilationKernels();
      }
    
      Status CreateMlirModule(std::string module_string = kMlirModuleStr) {
        TF_ASSIGN_OR_RETURN(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    						Expression: "this.expression == unit.test",
    						Message:    "test2",
    					},
    				},
    			},
    			policyDecision: []PolicyDecision{
    				{
    					Action:  ActionDeny,
    					Reason:  metav1.StatusReasonForbidden,
    					Message: "test1",
    				},
    				{
    					Action:  ActionDeny,
    					Reason:  metav1.StatusReasonForbidden,
    					Message: "test2",
    				},
    			},
    			failPolicy: &fail,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

      }
      return nullptr;
    }
    
    TEST_F(QuantizeWeightsTest, QuantizationSucceeds) {
      LoadBasicModel();
      flatbuffers::FlatBufferBuilder builder;
      auto status = QuantizeWeights(&builder, model_, 0);
      EXPECT_EQ(status, kTfLiteOk);
    
      const uint8_t* buffer = builder.GetBufferPointer();
      const Model* output_model = GetModel(buffer);
      ASSERT_TRUE(output_model);
    }
    
    TEST_F(QuantizeWeightsTest, QuantizationFails) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    }
    
    // This value parameterized test allows us to test both TFRT
    // and non TFRT runtimes.
    // 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();
    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