Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for floatBits (0.12 sec)

  1. tensorflow/c/kernels_test.cc

        return static_cast<void*>(s);
      };
    
      AttrValue v;
      v.set_f(2.718);
      CreateAndCallKernelWithAttr(my_create_func, "TestKernelAttrFloat", v);
    }
    
    TEST_F(TestKernelAttr, FloatList) {
      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)
  2. src/cmd/compile/internal/types2/expr.go

    		goto Error
    
    	case *syntax.BasicLit:
    		if e.Bad {
    			goto Error // error reported during parsing
    		}
    		switch e.Kind {
    		case syntax.IntLit, syntax.FloatLit, syntax.ImagLit:
    			check.langCompat(e)
    			// The max. mantissa precision for untyped numeric values
    			// is 512 bits, or 4048 bits for each of the two integer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      float value;
      TF_OperationGetAttrFloat(oper, "v", &value, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_FLOAT_EQ(2.718, value);
    }
    
    TEST_F(CApiAttributesTest, FloatList) {
      const float list[] = {1.414, 2.718, 3.1415};
      const size_t list_size = TF_ARRAYSIZE(list);
    
      auto desc = init("list(float)");
      TF_SetAttrFloatList(desc, "v", list, list_size);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top