Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 5,246 for returns_ (0.09 sec)

  1. cmd/kubeadm/app/phases/certs/renewal/manager.go

    	if err != nil {
    		return nil, err
    	}
    
    	// returns the certificate expiration info
    	return newExpirationInfo(name, cert, externallyManaged), nil
    }
    
    // CAExists returns true if a certificate authority exists.
    func (rm *Manager) CAExists(name string) (bool, error) {
    	handler, ok := rm.cas[name]
    	if !ok {
    		return false, errors.Errorf("%s is not a known certificate", name)
    	}
    
    	return handler.readwriter.Exists()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/runtime/tracestack.go

    				break outer
    			}
    			lastFuncID = sf.funcID
    		}
    	}
    	return n
    }
    
    // startPCForTrace returns the start PC of a goroutine for tracing purposes.
    // If pc is a wrapper, it returns the PC of the wrapped function. Otherwise it
    // returns pc.
    func startPCForTrace(pc uintptr) uintptr {
    	f := findfunc(pc)
    	if !f.valid() {
    		return pc // may happen for locked g in extra M since its pc is 0.
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

    // inputs to module_op that have already been added to the XlaBuilder. returns
    // are the returned XlaOps.
    ABSL_DEPRECATED("Use v2/legalize_tf.h::LegalizeMlirToHlo instead.")
    Status BuildHloFromTf(mlir::ModuleOp module_op, xla::XlaBuilder& builder,
                          llvm::ArrayRef<xla::XlaOp> xla_params,
                          std::vector<xla::XlaOp>& returns,
                          llvm::ArrayRef<TensorOrResourceShape> arg_shapes,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/custom-response.md

    ```
    
    ### `HTMLResponse`
    
    Takes some text or bytes and returns an HTML response, as you read above.
    
    ### `PlainTextResponse`
    
    Takes some text or bytes and returns an plain text response.
    
    ```Python hl_lines="2  7  9"
    {!../../../docs_src/custom_response/tutorial005.py!}
    ```
    
    ### `JSONResponse`
    
    Takes some data and returns an `application/json` encoded response.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

    }
    
    // Finds op that created a given value. If the value is a BlockArgument, this
    // returns the owner of the Block.
    Operation* GetOpOfValue(Value value) {
      if (auto block_arg = mlir::dyn_cast<BlockArgument>(value))
        return block_arg.getOwner()->getParentOp();
    
      return value.getDefiningOp();
    }
    
    // Checks if `op` is nested in `block`.
    bool OpInBlock(Operation* op, Block* block) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. internal/config/storageclass/storage-class.go

    	scStr := string(b)
    	if scStr == "" {
    		return nil
    	}
    	s, err := parseStorageClass(scStr)
    	if err != nil {
    		return err
    	}
    	sc.Parity = s.Parity
    	return nil
    }
    
    // MarshalText - marshals storage class string.
    func (sc *StorageClass) MarshalText() ([]byte, error) {
    	if sc.Parity != 0 {
    		return []byte(fmt.Sprintf("%s:%d", schemePrefix, sc.Parity)), nil
    	}
    	return []byte{}, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. internal/grid/handlers.go

    	if r == nil || other == nil {
    		return r == other
    	}
    	var o RemoteErr
    	if errors.As(other, &o) {
    		return r == &o
    	}
    	return false
    }
    
    // IsRemoteErr returns the value if the error is a RemoteErr.
    func IsRemoteErr(err error) *RemoteErr {
    	var r RemoteErr
    	if errors.As(err, &r) {
    		return &r
    	}
    	return nil
    }
    
    type (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * Reserves next ticket and returns the wait time that the caller must wait for.
       *
       * @return the required wait time, never negative
       */
      final long reserveAndGetWaitLength(int permits, long nowMicros) {
        long momentAvailable = reserveEarliestAvailable(permits, nowMicros);
        return max(momentAvailable - nowMicros, 0);
      }
    
      /**
       * Returns the earliest time that permits are available (with one caveat).
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/types.go

    	case IntType.TypeName():
    		return IntType
    	case NullType.TypeName():
    		return NullType
    	case StringType.TypeName():
    		return StringType
    	case TimestampType.TypeName():
    		return TimestampType
    	case UintType.TypeName():
    		return UintType
    	case ListType.TypeName():
    		return ListType
    	case MapType.TypeName():
    		return MapType
    	default:
    		return nil
    	}
    }
    
    var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      auto result = func.walk([&](Operation* op) {
        if (!IsCommunicationOp(op)) return WalkResult::advance();
        has_communication_ops = true;
        if (failed(
                GetControlFlowAncestors(op, control_flow_ops, control_flow_blocks)))
          return WalkResult::interrupt();
        return WalkResult::advance();
      });
      return failure(result.wasInterrupted());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
Back to top