Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 110 for test_1 (0.55 sec)

  1. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

      }
      TensorType tensor_type_;
    };
    
    INSTANTIATE_TEST_SUITE_P(QuantizeConvModelTestInst, QuantizeConvModelTest,
                             testing::ValuesIn({TensorType_INT8}));
    
    TEST_P(QuantizeConvModelTest, QuantizationSucceeds) {
      auto status = QuantizeModelAllOperators(&model_, tensor_type_, tensor_type_,
                                              /*allow_float=*/false, tensor_type_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  2. pkg/kubelet/pod_workers_test.go

    	}
    
    	// initiate a sync with all pods remaining
    	state := podWorkers.SyncKnownPods([]*v1.Pod{
    		newNamedPod("1-normal", "test1", "pod1", false),
    		newNamedPod("2-static", "test1", "pod1", true),
    		newNamedPod("3-static", "test1", "pod1", true),
    		newNamedPod("4-static", "test1", "pod1", true),
    	})
    	drainAllWorkers(podWorkers)
    
    	// 2-static and 3-static should both be listed as terminated
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

      EXPECT_EQ(tf2xla_fallback_count, 322);
      EXPECT_EQ(non_categorized_count, 428);
    }
    
    // Just a counter test to see which ops have duplicate lowerings. This isn't a
    // correctness test versus a test to easily ensure the op registry is kept
    // in sync.
    TEST_F(LegalizationOpConfigTest, CountTypesWhichHaveBothMlirAndTf2xlaFallback) {
      int double_lowering_count = 0;
    
      DialectRegistry dialect_registry;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops_test.cc

      Env* env_;
      std::string test_dir_;
      std::string test_group_name_;
    };
    
    TEST_F(LowerClusterToRuntimeOpsTest, SanityCheck) {
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
      TF_EXPECT_OK(RunLowerClusterToRuntimeOpsPassPipeline(
          *mlir_module_, DeviceType(DEVICE_TPU_XLA_JIT)));
    }
    
    TEST_F(LowerClusterToRuntimeOpsTest, LowersClusterOpsTPU) {
      TF_ASSERT_OK(CreateMlirModule("basic_cluster.mlir"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_test.cc

      TF_Graph* graph_;
      TF_Graph* expected_graph_;
    };
    
    TEST_F(CApiGradientsTest, Gradients_GradInputs) { TestGradientsSuccess(true); }
    
    TEST_F(CApiGradientsTest, Gradients_NoGradInputs) {
      TestGradientsSuccess(false);
    }
    
    TEST_F(CApiGradientsTest, OpWithNoGradientRegistered_GradInputs) {
      TestGradientsError(true);
    }
    
    TEST_F(CApiGradientsTest, OpWithNoGradientRegistered_NoGradInputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top