Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for newT40 (0.12 sec)

  1. test/live.go

    type T40 struct {
    	m map[int]int
    }
    
    //go:noescape
    func useT40(*T40)
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40()
    	_ = t
    	printnl()
    }
    
    func good40() {
    	ret := T40{}              // ERROR "stack object ret T40$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  2. test/live_regabi.go

    type T40 struct {
    	m map[int]int
    }
    
    //go:noescape
    func useT40(*T40)
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40()
    	_ = t
    	printnl()
    }
    
    func good40() {
    	ret := T40{}              // ERROR "stack object ret T40$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  3. src/encoding/gob/encoder_test.go

    	}
    	//fmt.Printf("% x %q\n", b, b)
    	//Debug(b)
    	dec := NewDecoder(b)
    	newEt0 := new(ET0)
    	err = dec.Decode(newEt0)
    	if err != nil {
    		t.Fatal("error decoding ET0:", err)
    	}
    
    	if !reflect.DeepEqual(et0, newEt0) {
    		t.Fatalf("invalid data for et0: expected %+v; got %+v", *et0, *newEt0)
    	}
    	if b.Len() != 0 {
    		t.Error("not at eof;", b.Len(), "bytes left")
    	}
    	//	t.FailNow()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/math_grad_test.cc

        EXPECT_LT(max_error, 1e-3f);
      }
    
      float RV(const std::vector<float>& v) {
        return v[random::New64() % v.size()];
      }
    
      complex64 CRV(const std::vector<complex64>& v) {
        return v[random::New64() % v.size()];
      }
    
      complex64 conjugate(const complex64& val) {
        return complex64(val.real(), -val.imag());
      }
    
      Scope scope_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  5. tests/hooks_test.go

    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    	DB.Model(&product).Select("Name", "Code", "Price").Updates(Product3{Name: "Product New4", Code: ""})
    	if product.Name != "Product New4" || product.Price != 320 || product.Code != "" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	DB.Model(&product).UpdateColumns(Product3{Code: "L1215"})
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/nn_grad_test.cc

          tensor_flat(i) = cur;
          cur += 5e-2;
        }
        // Fischer-Yates shuffle the array
        for (size_t i = tensor->NumElements() - 1; i >= 1; i--) {
          // j <- random integer 0 <= j <= i
          size_t j = random::New64() % (i + 1);
          // swap values at i, j
          T tmp = tensor_flat(i);
          tensor_flat(i) = tensor_flat(j);
          tensor_flat(j) = tmp;
        }
      }
    
      Scope scope_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 20:45:22 UTC 2022
    - 15K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

    constexpr char kDefaultShardingValue[] = "";
    constexpr char kMirroredVariableIndicesAttr[] = "_mirrored_variable_indices";
    
    std::string GetRandomStateVariableName() {
      return absl::StrCat("VariablesFormatState_", tensorflow::random::New64());
    }
    
    #define GEN_PASS_DEF_TPUVARIABLERUNTIMEREFORMATTINGPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/runtime_passes.h.inc"
    
    struct TPUVariableRuntimeReformattingPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top