Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for TEST_F (0.21 sec)

  1. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

      }
      SP_Platform platform_;
      SP_PlatformFns platform_fns_;
      SP_DeviceFns device_fns_;
      SP_StreamExecutor se_;
      SP_TimerFns timer_fns_;
      std::unique_ptr<CPlatform> cplatform_;
    };
    
    TEST_F(StreamExecutorTest, Allocate) {
      se_.allocate = [](const SP_Device* const device, uint64_t size,
                        int64_t memory_space, SP_DeviceMemoryBase* const mem) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/math_grad_test.cc

      Scope root_;
    };
    
    TEST_F(MathGradTest, MatMulGrad_NoTranspose) {
      TestMatMulGrad<float>(false, false);
    }
    
    TEST_F(MathGradTest, MatMulComplexGrad_NoTranspose) {
      TestMatMulGrad<complex64>(false, false);
    }
    
    TEST_F(MathGradTest, MatMulGrad_TransposeX) {
      TestMatMulGrad<float>(true, false);
    }
    
    TEST_F(MathGradTest, MatMulComplexGrad_TransposeX) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/array_grad_test.cc

    }
    
    TEST_F(ArrayGradTest, UnstackGrad_Axis1) {
      TensorShape x_shape({4, 2, 3});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      // Unstacking the second dimension results in 2 outputs.
      std::vector<TensorShape> y_shapes(2, TensorShape({4, 3}));
      auto y = Unstack(scope_, x, 2, Unstack::Axis(1));
      RunTest({x}, {x_shape}, y.output, y_shapes);
    }
    
    TEST_F(ArrayGradTest, IdentityGrad) {
      TensorShape shape({5, 2});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

        }
        return main;
      }
    
     protected:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
    };
    
    TEST_F(LegalizationOpConfigTest, FailsWithExpectsLegalizationWithMlir) {
      TF_EXPECT_OK(CreateMlirModule());
      EXPECT_FALSE(IsOpLegalizedWithMlir(*module_->getOperation()));
    }
    
    TEST_F(LegalizationOpConfigTest, ExpectsFalseForNonMlirOps) {
      TF_EXPECT_OK(CreateMlirModule());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

    }
    
    TEST_F(CreateI8F32UniformQuantizedTypeTest, F32ExpressedTypeSucceeds) {
      const UniformQuantizedType quantized_type =
          CreateI8F32UniformQuantizedType(UnknownLoc::get(&ctx_), ctx_,
                                          /*scale=*/1.0, /*zero_point=*/0);
    
      EXPECT_TRUE(quantized_type.getExpressedType().isF32());
    }
    
    TEST_F(CreateI8F32UniformQuantizedTypeTest, SignedQuantizedTypeSucceeds) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/quantization/common/func_test.cc

    namespace mlir::quant {
    namespace {
    
    using ::testing::IsNull;
    using ::testing::NotNull;
    
    using FindMainFuncOpTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(FindMainFuncOpTest, ReturnsMainFuncOp) {
      constexpr absl::string_view kModuleWithMainFunc = R"mlir(
        module {
          func.func @main() -> () {
            return
          }
        }
      )mlir";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

          return %0 : tensor<1x3xf32>
        }
      }
    )mlir";
    
    TEST_F(IsOpQuantizableStableHloTest, ConstantOpQuantizable) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleConstantAdd);
      ASSERT_TRUE(module_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_platform_info_test.cc

      }
    
      DeviceSetup device_setup_;
    };
    
    class StubDevice : public DeviceBase {
     public:
      StubDevice() : DeviceBase(nullptr) {}
    };
    
    #if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
    TEST_F(XlaPlatformInfoTest, BuildXlaDeviceCompilerXlaDeviceMetadata) {
      device_setup_.AddDevicesAndSetUp({DEVICE_XLA_GPU});
    
      Device* device = device_setup_.GetDevice(DEVICE_XLA_GPU);
      const XlaDevice::Metadata* metadata = nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Jan 14 15:17:12 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top