Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,155 for converts (0.37 sec)

  1. tensorflow/c/eager/dlpack.cc

    void DLManagedTensorDeleter(DLManagedTensor* arg) {
      TfDlManagedTensorCtx* owner =
          static_cast<TfDlManagedTensorCtx*>(arg->manager_ctx);
      owner->reference.Unref();
      delete owner;
    }
    
    // Converts TF_DATAType to DLPack data type.
    DLDataType GetDlDataType(TF_DataType data_type, TF_Status* status) {
      DLDataType dtype;
      dtype.lanes = 1;
      dtype.bits = TF_DataTypeSize(data_type) * 8;
      switch (data_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/WasmOps.go

    		{name: "F32ConvertI64S", asm: "F32ConvertI64S", argLength: 1, reg: regInfo{inputs: []regMask{gp}, outputs: []regMask{fp32}}, typ: "Float32"}, // converts the signed integer arg0 to a float
    		{name: "F32ConvertI64U", asm: "F32ConvertI64U", argLength: 1, reg: regInfo{inputs: []regMask{gp}, outputs: []regMask{fp32}}, typ: "Float32"}, // converts the unsigned integer arg0 to a float
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  3. src/syscall/security_windows.go

    //sys	GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err error) [failretval&0xff==0] = secur32.GetUserNameExW
    
    // TranslateAccountName converts a directory service
    // object name from one format to another.
    func TranslateAccountName(username string, from, to uint32, initSize int) (string, error) {
    	u, e := UTF16PtrFromString(username)
    	if e != nil {
    		return "", e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. src/internal/zstd/fse.go

    	512 | (9 << 24),
    	1024 | (10 << 24),
    	2048 | (11 << 24),
    	4096 | (12 << 24),
    	8192 | (13 << 24),
    	16384 | (14 << 24),
    	32768 | (15 << 24),
    	65536 | (16 << 24),
    }
    
    // makeLiteralBaselineFSE converts the literal length fseTable to baselineTable.
    func (r *Reader) makeLiteralBaselineFSE(off int, fseTable []fseEntry, baselineTable []fseBaselineEntry) error {
    	for i, e := range fseTable {
    		be := fseBaselineEntry{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:44:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  5. pkg/api/v1/resource/helpers.go

    }
    
    // convertResourceCPUToString converts cpu value to the format of divisor and returns
    // ceiling of the value.
    func convertResourceCPUToString(cpu *resource.Quantity, divisor resource.Quantity) (string, error) {
    	c := int64(math.Ceil(float64(cpu.MilliValue()) / float64(divisor.MilliValue())))
    	return strconv.FormatInt(c, 10), nil
    }
    
    // convertResourceMemoryToString converts memory value to the format of divisor and returns
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/cgroup_manager_linux.go

    	return int64(val), err
    }
    
    // Convert cgroup v1 cpu.shares value to cgroup v2 cpu.weight
    // https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2254-cgroup-v2#phase-1-convert-from-cgroups-v1-settings-to-v2
    func CpuSharesToCpuWeight(cpuShares uint64) uint64 {
    	return uint64((((cpuShares - 2) * 9999) / 262142) + 1)
    }
    
    // Convert cgroup v2 cpu.weight value to cgroup v1 cpu.shares
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    					dv.Set(sv.Convert(dt))
    					return nil
    				case reflect.Float32, reflect.Float64:
    					dv.Set(sv.Convert(dt))
    					return nil
    				}
    			case reflect.Float32, reflect.Float64:
    				switch dt.Kind() {
    				case reflect.Float32, reflect.Float64:
    					dv.Set(sv.Convert(dt))
    					return nil
    				}
    				if sv.Float() == math.Trunc(sv.Float()) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  8. pilot/pkg/config/kube/ingress/conversion.go

    		err = multierror.Append(
    			fmt.Errorf("could not decode string into ingress rule name: %s", name),
    			pathErr, ruleErr)
    		return
    	}
    
    	return
    }
    
    // ConvertIngressV1alpha3 converts from ingress spec to Istio Gateway
    func ConvertIngressV1alpha3(ingress knetworking.Ingress, mesh *meshconfig.MeshConfig, domainSuffix string) config.Config {
    	gateway := &networking.Gateway{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

    class Exporter {
     public:
      // Converts the given Module to a Graph. The given module should only contain
      // one entry function, which is identified by name "main". This entry function
      // is converted to the base of the graph graph. The rest of the functions are
      // converted to the library functions in that graph.
      static Status Convert(mlir::ModuleOp module, const GraphExportConfig& configs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

    class Exporter {
     public:
      // Converts the given Module to a Graph. The given module should only contain
      // one entry function, which is identified by name "main". This entry function
      // is converted to the base of the graph graph. The rest of the functions are
      // converted to the library functions in that graph.
      static Status Convert(mlir::ModuleOp module, const GraphExportConfig& configs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top