Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setFoo (0.13 sec)

  1. src/reflect/value.go

    		} else {
    			typedmemmove(v.typ(), v.ptr, x.ptr)
    		}
    	} else {
    		*(*unsafe.Pointer)(v.ptr) = x.ptr
    	}
    }
    
    // SetBool sets v's underlying value.
    // It panics if v's Kind is not [Bool] or if [Value.CanSet] returns false.
    func (v Value) SetBool(x bool) {
    	v.mustBeAssignable()
    	v.mustBe(Bool)
    	*(*bool)(v.ptr) = x
    }
    
    // SetBytes sets v's underlying value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

        std::vector<int>* output_permutation, NodeDef* node_def) {
      string old_name = node_def->op();
      string new_name =
          absl::StrCat(xla_cluster_name_, "_", new_function_name_, "_", old_name);
      node_def->set_op(new_name);
      node_def->set_name(new_name);
    
      // Later we will run PruneForReverseReachability(), so make sure all original
      // nodes are reachable from sink node and won't be removed.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    	shouldPanic("value of type string is not assignable to type bool", func() { vo(new(bool)).Elem().Set(vo("")) })
    	shouldPanic("call of reflect.Value.SetBool on string Value", func() { vo(new(string)).Elem().SetBool(false) })
    	shouldPanic("reflect.Value.SetBytes using unaddressable value", func() { vo("").SetBytes(nil) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top