Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 79 for TEST_F (0.16 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc

    using ::tsl::testing::IsOk;
    
    using QuantizationReportTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(QuantizationReportTest, GetQuantizationResultsReturnsEmptyResults) {
      QuantizationReport report{};
    
      const QuantizationResults& results = report.GetQuantizationResults();
      ASSERT_THAT(results.results(), IsEmpty());
    }
    
    TEST_F(QuantizationReportTest, AddQuantizationResult) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph_test.cc

                &per_core_arg_shapes, client, &compilation_result);
    
        if (!compilation_status.ok()) return compilation_status;
    
        return compilation_result;
      }
    };
    
    TEST_F(CompileTFGraphTest, RecordsStreamzForMlirFallback) {
      CellReader<Histogram> compilation_time(kCompilationTimeStreamzName);
    
      MlirToHloArgs mlir_to_hlo_args = CreateTestMlirToHloArgs();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    TEST_F(TensorflowDialectToExecutorTest, ConvertsToExecutor) {
      CellReader<int64_t> compilation_status(kExportStreamzName);
    
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

    }
    
    // Testing ConvertMlirModuleToExportedModel requires parsing MLIR string to
    // ModuleOp.
    using ConvertMlirModuleToExportedModelTest =
        ::mlir::quant::QuantizationTestBase;
    
    TEST_F(ConvertMlirModuleToExportedModelTest, SimpleGraphDefSet) {
      // Define a module a no-op main function.
      mlir::OwningOpRef<mlir::ModuleOp> module_op = ParseModuleOpString(R"mlir(
        module attributes {tf_saved_model.semantics} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx_test.cc

      std::vector<NodeAndType> nodes;
      for (auto& node : graph.node_def()) {
        nodes.push_back({node.op(), node.attr().at("T").type()});
      }
      return nodes;
    }
    
    TEST_F(TFRDecomposeContextTest, FLOAT_1_ins) {
      std::vector<NodeDefBuilder::NodeOut> src_list;
      src_list.emplace_back("input", 0, DT_FLOAT);
      NodeDef test_node;
      auto status = NodeDefBuilder("float_add", "MyAddN")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

                  /* metric name */
                  "/tensorflow/core/mlir_function_pass_graph_conversion_count");
      std::map<MlirOptimizationPassState, std::map<bool, int64_t>>
          pass_result_expected_;
    };
    
    TEST_F(MlirGraphOptimizationPassTest, OptimizationPassFailsNoFallback) {
      Init(Status(absl::StatusCode::kAborted, "aborted"),
           {MlirOptimizationPassState::Enabled});
    
      GraphDef original_graph_def;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

        device_allocator_ = device_->GetAllocator(device_alloc_attr);
      }
    
     protected:
      std::unique_ptr<Device> device_;
      Allocator* host_allocator_;
      Allocator* device_allocator_;
    };
    
    TEST_F(XlaHostSendRecvDeviceContextTest, CopyDeviceTensorToCPU) {
      SetDevice("GPU");
      Tensor origin_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2}));
      test::FillValues<float>(&origin_cpu_tensor, {1.2, 2.3, 3.4, 4.5});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils_test.cc

      }
    
      MLIRContext ctx_;
      OpBuilder builder_{&ctx_};
    };
    
    TEST_F(StablehloTypeUtilsTest, IsStablehloOpSucceedsWithStablehloOp) {
      const OwningOpRef<mlir::stablehlo::ConstantOp> constant_op =
          builder_.create<mlir::stablehlo::ConstantOp>(
              builder_.getUnknownLoc(), builder_.getI32IntegerAttr(0));
      EXPECT_TRUE(IsStablehloOp(*constant_op));
    }
    
    TEST_F(StablehloTypeUtilsTest, IsStablehloOpFailsWithArithOp) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf_test.cc

        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    TEST_F(SessionClusterTensorflowDialectTest, ClustersTf) {
      CellReader<int64_t> compilation_status(kCompilationStreamz);
    
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
      TF_EXPECT_OK(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top