Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 79 for TEST_F (0.37 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc

        auto module_op_ref =
            mlir::parseSourceString<mlir::ModuleOp>(module_op_str, &ctx_);
        EXPECT_TRUE(module_op_ref);
        return module_op_ref;
      }
    
      Env* env_{};
      mlir::MLIRContext ctx_{};
    };
    
    TEST_F(SaveVariablesToCheckpointTest, VariableSavedToCheckpoint) {
      constexpr absl::string_view kModuleCode = R"mlir(
        module attributes {tf_saved_model.semantics} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

      }
    
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    TEST_F(VerifyNoOutsideCompilationMarkersPassTest, PassesValidOps) {
      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: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/c/kernels_test.cc

            GetFakeKernelWithAttr(op_name, v, &status);
        TF_EXPECT_OK(status);
        ASSERT_NE(nullptr, kernel.get());
        kernel->Compute(nullptr);
    
        ASSERT_TRUE(delete_called);
      }
    };
    
    TEST_F(TestKernelAttr, GetNodeDef) {
      auto my_create_func = [](TF_OpKernelConstruction* ctx) {
        struct MyCustomKernel* s = new struct MyCustomKernel;
        s->created = true;
        s->compute_called = false;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

      }
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    TEST_F(VerifyTfxlaLegalizationTest, RecordsStreamzFailedVerification) {
      // Using a string constant here instead of testdata to make this compatible
      // with open source.
      static constexpr char kMlirModuleStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

          /*attr_def*/
          {}, /*node_def=*/{FunctionDefHelper::Const("one", 1.0f)},
          /*ret_def=*/{{"out", "out:output:0"}});
      *fdef_lib.add_function() = std::move(func);
      return fdef_lib;
    }
    
    TEST_F(BuildXlaOpsTest, ControlDepsPreserved) {
      const char* kXlaDeviceName = "/job:worker/replica:0/task:0/device:XLA_CPU:0";
      Scope root = Scope::NewRootScope().WithDevice(kXlaDeviceName).ExitOnError();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/device_compiler_test.cc

      std::unique_ptr<core::ScopedUnref> mock_profiler_ref_;
    
      XlaDeviceCompiler* xla_device_compiler_;
      std::unique_ptr<core::ScopedUnref> xla_device_compiler_ref_;
    };
    
    TEST_F(DeviceCompilerTest, CompileStrictSuccess) {
      const XlaCompiler::CompilationResult* compilation_result = nullptr;
      xla::LocalExecutable* xla_executable = nullptr;
    
      XlaCompiler::Options options = GetDefaultXlaOptions();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/bundle_v2_test.cc

          // And should be able to load it from the tensor_bundle.
          Tensor value;
          TF_ASSERT_OK(
              bundle->variable_reader()->Lookup(std::get<2>(restored_var), &value));
        }
      }
    };
    
    TEST_F(BundleV2Test, LoadsVarsAndArithmeticObjectGraph) {
      const std::string export_dir = io::JoinPath(
          testing::TensorFlowSrcRoot(), kTestData, "VarsAndArithmeticObjectGraph");
    
      SavedModelV2Bundle bundle;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 17:51:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc

    };
    
    func::FuncOp GetMainFuncOp(ModuleOp module_op) {
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        if (func_op.getSymName() == "main") {
          return func_op;
        }
      }
      return {};
    }
    
    TEST_F(ConvertAssetArgsTest, ConvertsSingleAssetArg) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir(
        module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top