Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestFloat32 (0.15 sec)

  1. tensorflow/cc/experimental/libtf/impl/iostream_test.cc

    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(OStreamTest, TestInt64) {
      Int64 x(42);
      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "42");
    }
    
    TEST(OStreamTest, TestFloat32) {
      Float32 x(0.375);  // Exactly representable as a float.
      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "0.375");
    }
    
    TEST(OStreamTest, TestString) {
      String s("foo");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/encoding/gob/encoder_test.go

    		t.Error(err)
    	}
    }
    
    var testInt int
    var testFloat32 float32
    var testString string
    var testSlice []string
    var testMap map[string]int
    var testArray [7]int
    
    type SingleTest struct {
    	in  any
    	out any
    	err string
    }
    
    var singleTests = []SingleTest{
    	{17, &testInt, ""},
    	{float32(17.5), &testFloat32, ""},
    	{"bike shed", &testString, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/math/rand/rand_test.go

    		// Be conservative and assume that all mips boards
    		// have emulated floating point.
    		// TODO: detect what it actually has.
    		return true
    	}
    	return false
    }
    
    func TestFloat32(t *testing.T) {
    	// For issue 6721, the problem came after 7533753 calls, so check 10e6.
    	num := int(10e6)
    	// But do the full amount only on builders (not locally).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. src/math/rand/v2/rand_test.go

    		// Be conservative and assume that all mips boards
    		// have emulated floating point.
    		// TODO: detect what it actually has.
    		return true
    	}
    	return false
    }
    
    func TestFloat32(t *testing.T) {
    	// For issue 6721, the problem came after 7533753 calls, so check 10e6.
    	num := int(10e6)
    	// But do the full amount only on builders (not locally).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top