Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 79 for TEST_F (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/legalize_tf_quant_test.cc

                         /*shape_determination_fns=*/{}, arg_shapes,
                         &arg_core_mapping, &per_core_arg_shapes, client)
                         .status());
      }
    };
    
    TEST_F(LegalizeTFQuantTest, LegalizesModuleWithTFUniformQuantization) {
      constexpr char mlir_module_string[] = R"mlir(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 18:43:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver_test.cc

      spec->biases_params[2] = {{0, 1}, quant::GetUniformQuantizedTypeForBias};
      for (const auto& [key, value] : spec->coeff_op_quant_dim) {
        spec->quantizable_operands.insert(key);
      }
      return spec;
    }
    
    TEST_F(ApplyQuantizationParamsPropagationTest,
           ConstsUsedMultipleTimesAreDuplicated) {
      const OwningOpRef<ModuleOp> module_op_ref =
          ParseModuleOpString(kModuleTFLite);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc

        return run_result;
      }
    
     private:
      mlir::MLIRContext context_;
      mlir::OwningOpRef<ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    TEST_F(InputLoweringMetricsPassTest, CountsNoDynamicOps) {
      static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 19:42:09 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils_test.cc

        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    TEST_F(TpuMetadataUtilsTest, SingleDevice) {
      TF_ASSERT_OK_AND_ASSIGN(auto cluster_func_ops,
                              GetClusterFuncOps("basic_cluster.mlir"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 12 04:22:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc

        for (const std::string& file : files) {
          TF_ASSERT_OK(env_->DeleteFile(file));
        }
      }
    
      tsl::Env* env_;
      std::string test_dir_;
      std::unique_ptr<mlir::MLIRContext> ctx_;
    };
    
    TEST_F(EnableIrPrintingTest, PassSuccessfullyRuns) {
      mlir::PassManager pm = {ctx_.get()};
      pm.addPass(CreateNoOpPass());
      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      func::FuncOp fused_lstm_func_;
      func::FuncOp fused_lstm_func_cifg_;
      func::FuncOp fused_ln_lstm_func_;
      std::unique_ptr<mlir::MLIRContext> context_;
      std::unique_ptr<mlir::Builder> builder_;
    };
    
    TEST_F(LstmUtilsTest, ConvertLSTMCellSimple) {
      mlir::TFL::ConvertLSTMCellSimpleToFusedLSTM convert(fused_lstm_func_);
    
      auto result = convert.RewriteFunc();
      EXPECT_FALSE(failed(result));
      fused_lstm_func_.dump();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

        readonly_model_ = input_model_->GetModel();
        model_ = UnPackFlatBufferModel(*readonly_model_);
      }
    };
    
    // TODO(b/327796566): re-enable after the bug is fixed
    // TEST_F(QuantizeConvNoBiasModelTest, QuantizationSucceeds) {
    //   auto status = QuantizeModelAllOperators(
    //       &model_, TensorType_INT8, TensorType_INT8,
    //       /*allow_float=*/false, TensorType_INT8, &error_reporter_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/device_context_test.cc

      tensorflow::core::RefCountPtr<DeviceContext> device_context_;
      tensorflow::Allocator* host_allocator_;
      tensorflow::Allocator* device_allocator_;
    };
    
    #if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
    TEST_F(DeviceContextTest, TestXlaGpuRoundTripTransferWithDeviceApi) {
      SetDevice(DEVICE_XLA_GPU);
      tensorflow::Tensor origin_cpu_tensor(host_allocator_, tensorflow::DT_FLOAT,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest_prod.h

    // class.  For example:
    //
    // class MyClass {
    //  private:
    //   void MyMethod();
    //   FRIEND_TEST(MyClassTest, MyMethod);
    // };
    //
    // class MyClassTest : public testing::Test {
    //   // ...
    // };
    //
    // TEST_F(MyClassTest, MyMethod) {
    //   // Can call MyClass::MyMethod() here.
    // }
    
    #define FRIEND_TEST(test_case_name, test_name)\
    friend class test_case_name##_##test_name##_Test
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

            flr, fld, shape_inference_graphs, has_outside_compilation);
      }
    
     private:
      std::unique_ptr<DeviceMgr> device_mgr_;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    };
    
    TEST_F(ExtractOutsideCompilationForFunctionTest, Basic) {
      // Build the XLA computation func.
      // "const0"
      // "identity0" = "const0" (outside compilation cluster "0")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
Back to top