Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 150 for retval (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go

    	clk.Run(nil)
    	expectGotValue(t, gots, expected)
    }
    
    func expectGotValue(t *testing.T, gots <-chan interface{}, expected interface{}) {
    	select {
    	case gotVal := <-gots:
    		t.Logf("Got %v", gotVal)
    		if gotVal != expected {
    			t.Errorf("Get returned %v, expected: %v", gotVal, expected)
    		}
    	case <-time.After(wait.ForeverTestTimeout):
    		t.Error("Get did not return")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients.cc

                   absl::Span<AbstractTensorHandle*> retvals, int* num_retvals,
                   ForwardOperation* forward_op_, Tape* tape,
                   const GradientRegistry& registry) {
      TF_RETURN_IF_ERROR(op_->Execute(retvals, num_retvals));
      for (int i = 0; i < *num_retvals; i++) {
        // TODO(srbs): Manage refcount of ForwardOperation's inputs/outputs.
        forward_op_->outputs.push_back(retvals[i]);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api.h

    // Execute the operation defined by 'op' and return handles to computed
    // tensors in `retvals`.
    //
    // 'retvals' must point to a pre-allocated array of TFE_TensorHandle* and
    // '*num_retvals' should be set to the size of this array. It is an error if
    // the size of 'retvals' is less than the number of outputs. This call sets
    // *num_retvals to the number of outputs.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 22.8K bytes
    - Viewed (0)
  4. pkg/apis/networking/v1beta1/conversion.go

    		return err
    	}
    	if len(in.ServiceName) > 0 || in.ServicePort.IntVal != 0 || in.ServicePort.StrVal != "" || in.ServicePort.Type == intstr.String {
    		out.Service = &networking.IngressServiceBackend{}
    		out.Service.Name = in.ServiceName
    		out.Service.Port.Name = in.ServicePort.StrVal
    		out.Service.Port.Number = in.ServicePort.IntVal
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/output-shapes-attr.mlir

    // CHECK-NEXT:     value {
    // CHECK-NEXT:       list {
    // CHECK-NEXT:         shape {
    // CHECK-NEXT:           dim {
    // CHECK-NEXT:             size: 10
    // CHECK:        name: "output0"
    // CHECK-NEXT:   op: "_Retval"
    // CHECK-NEXT:   input: "input0"
    // CHECK-NEXT:   attr {
    // CHECK-NEXT:     key: "T"
    // CHECK-NEXT:     value {
    // CHECK-NEXT:       type: DT_INT32
    // CHECK-NEXT:     }
    // CHECK-NEXT:   }
    // CHECK-NEXT:   attr {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 12:28:56 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go

    			if wireType != 0 {
    				return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType)
    			}
    			m.IntVal = 0
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				m.IntVal |= int32(b&0x7F) << shift
    				if b < 0x80 {
    					break
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. pkg/env/var.go

    	RegisterVar(v)
    	return GenericVar[T]{getVar(name), nil}
    }
    
    // RegisterStringVar registers a new string environment variable.
    func RegisterStringVar(name string, defaultValue string, description string) StringVar {
    	v := Var{Name: name, DefaultValue: defaultValue, Description: description, Type: STRING}
    	RegisterVar(v)
    	return StringVar{getVar(name)}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/switch_n.pbtxt

        key: "N"
        value {
          i: 2
        }
      }
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
    }
    node {
      name: "__inference_run_240_RetVal"
      op: "_Retval"
      input: "Case/merge/_9"
      device: "/job:localhost/replica:0/task:0/device:CPU:0"
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "index"
        value {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 15 19:42:47 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

    // Builds XlaSendFromHost node, and replaces all _Retval nodes with it.
    absl::StatusOr<Node*> ReplaceRetNodesWithSendFromHostNode(
        Graph* g, const string& oc_cluster_name,
        std::vector<DataType>* send_from_host_dtypes, Node* key_placeholder) {
      // TODO(b/77601805): use in nodes for sink node, instead of traversing all
      // nodes.
      std::vector<Node*> ret_nodes = GatherNodesWithType(*g, "_Retval");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  10. test/range4.go

    var ncalls = 0
    
    func getvar(p *int) *int {
    	ncalls++
    	return p
    }
    
    func iter2(list ...int) func(func(int, int) bool) {
    	return func(yield func(int, int) bool) {
    		for i, x := range list {
    			if !yield(i, x) {
    				return
    			}
    		}
    	}
    }
    
    func testcalls() {
    	var i, v int
    	ncalls = 0
    	si := 0
    	sv := 0
    	for *getvar(&i), *getvar(&v) = range iter2(1, 2) {
    		si += i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top