- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 587 for xelem (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/tests/stack_ops_decomposition.mlir
// CHECK: "tf.AssignVariableOp"(%[[BUFFER]], %[[UPDATE]]) // CHECK: "tf.AssignVariableOp"(%[[SIZE]] %push = "tf.StackPushV2"(%stack, %elem) {swap_memory = false} : (tensor<!tf_type.resource>, tensor<f32>) -> tensor<f32> "tf.Yield"(%elem) : (tensor<f32>) -> () }, { %elem = "tf._SomeOtherOp"() : () -> tensor<f32> // CHECK-NOT: tf.StackPushV2 // CHECK: %[[BUFFER_VAL:.*]] = "tf.ReadVariableOp"(%[[BUFFER]])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 25.8K bytes - Viewed (0) -
src/internal/reflectlite/set_test.go
func (mapError) Error() string { return "mapError" } var _ error = mapError{} var _ error = new(mapError) func TestImplements(t *testing.T) { for _, tt := range implementsTests { xv := TypeOf(tt.x).Elem() xt := TypeOf(tt.t).Elem() if b := xv.Implements(xt); b != tt.b { t.Errorf("(%s).Implements(%s) = %v, want %v", TypeString(xv), TypeString(xt), b, tt.b) } } } var assignableTests = []struct { x any t any
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/temp.go
// allocated temporary variable of type [len]elem. This variable is // initialized, and elem must not contain pointers. func stackBufAddr(len int64, elem *types.Type) *ir.AddrExpr { if elem.HasPointers() { base.FatalfAt(base.Pos, "%v has pointers", elem) } tmp := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(elem, len)) return typecheck.Expr(typecheck.NodAddr(tmp)).(*ir.AddrExpr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 16:41:23 UTC 2024 - 1.5K bytes - Viewed (0) -
src/go/types/index.go
case *Array: l = t.len e = t.elem if x.mode != variable { mode = value } case *Pointer: if t, _ := under(t.base).(*Array); t != nil { l = t.len e = t.elem } case *Slice: e = t.elem case *Map: k = t.key e = t.elem } if e == nil { return false } if elem == nil { // first type length = l
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:17:05 UTC 2024 - 11.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
if nn := arrayRangeClear(nrange, v1, v2, a); nn != nil { base.Pos = lno return nn } // Element type of the iteration var elem *types.Type switch t.Kind() { case types.TSLICE, types.TARRAY: elem = t.Elem() case types.TPTR: elem = t.Elem().Elem() } // order.stmt arranged for a copy of the array/slice variable if needed. ha := a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/third_party/forked/golang/json/fields_test.go
func TestLookupPtrToStruct(t *testing.T) { type Elem struct { Key string Value string } type Outer struct { Inner []Elem `json:"inner" patchStrategy:"merge" patchMergeKey:"key"` } outer := &Outer{} elemType, patchStrategies, patchMergeKey, err := LookupPatchMetadataForStruct(reflect.TypeOf(outer), "inner") if err != nil { t.Fatal(err) } if elemType != reflect.TypeOf([]Elem{}) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 20 22:35:14 UTC 2017 - 769 bytes - Viewed (0) -
src/testing/quick/quick.go
v.Elem().Set(elem) } case reflect.Slice: numElems := rand.Intn(size) sizeLeft := size - numElems v.Set(reflect.MakeSlice(concrete, numElems, numElems)) for i := 0; i < numElems; i++ { elem, ok := sizedValue(concrete.Elem(), rand, sizeLeft) if !ok { return reflect.Value{}, false } v.Index(i).Set(elem) } case reflect.Array: for i := 0; i < v.Len(); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
src/cmd/go/internal/modload/search.go
return nil } want := true elem := "" // Don't use GOROOT/src but do walk down into it. if pkgDir == root { if importPathRoot == "" { return nil } } else { // Avoid .foo, _foo, and testdata subdirectory trees. _, elem = filepath.Split(pkgDir) if strings.HasPrefix(elem, ".") || strings.HasPrefix(elem, "_") || elem == "testdata" { want = false } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:15 UTC 2023 - 7.9K bytes - Viewed (0) -
src/runtime/race/testdata/reflect_test.go
ch := make(chan bool, 1) i := 0 v := reflect.ValueOf(&i) go func() { v.Elem().Set(reflect.ValueOf(1)) ch <- true }() _ = v.Elem().Int() <-ch } func TestRaceReflectWW(t *testing.T) { ch := make(chan bool, 1) i := 0 v := reflect.ValueOf(&i) go func() { v.Elem().Set(reflect.ValueOf(1)) ch <- true }() v.Elem().Set(reflect.ValueOf(2)) <-ch } func TestRaceReflectCopyWW(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 13:12:15 UTC 2016 - 811 bytes - Viewed (0) -
tensorflow/cc/framework/ops.cc
size_t offset = 0; for (auto const& e : v) { Tensor elem = e.tensor; if (first.tensor.dtype() == DT_STRING) { for (int i = 0; i < elem.NumElements(); ++i) { t.flat<tstring>()(offset + i) = elem.flat<tstring>()(i); } offset += elem.NumElements(); } else { std::copy_n(elem.tensor_data().data(), elem.TotalBytes(), const_cast<char*>(t.tensor_data().data()) + offset);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 3.5K bytes - Viewed (0)