Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 506 for convertIP (0.17 sec)

  1. src/net/net_fake.go

    		}
    	}
    }
    
    func matchIPFamily(family int, addr sockaddr) sockaddr {
    	convertIP := func(ip IP) IP {
    		switch family {
    		case syscall.AF_INET:
    			return ip.To4()
    		case syscall.AF_INET6:
    			return ip.To16()
    		default:
    			return ip
    		}
    	}
    
    	switch addr := addr.(type) {
    	case *TCPAddr:
    		ip := convertIP(addr.IP)
    		if ip == nil || len(ip) == len(addr.IP) {
    			return addr
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/converter.go

    		}
    	}
    	return c.converter.Convert(in, toGVK.GroupVersion())
    }
    
    // safeConverterWrapper is a wrapper over an unsafe object converter that makes copy of the input and then delegate to the unsafe converter.
    type safeConverterWrapper struct {
    	unsafe runtime.ObjectConvertor
    }
    
    var _ runtime.ObjectConvertor = &safeConverterWrapper{}
    
    // ConvertFieldLabel delegate the call to the unsafe converter.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/database/sql/convert.go

    		// B: 1. NamedValueChecker 2. Column Converter 3. Default
    		// C: 1. NamedValueChecker 3. Default
    		// D: 1. Column Converter 2. Default
    		//
    		// The only time a Column Converter is called is first
    		// or after NamedValueConverter. If first it is handled before
    		// the nextCheck label. Thus for repeats tries only when the
    		// NamedValueConverter is selected should the Column Converter
    		// be used in the retry.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-quant.mlir

      // CHECK: %[[CONVERT_1:.*]] = mhlo.bitcast_convert %[[QUANTIZE]] : (tensor<2x!quant.uniform<i8:f32, 1.000000e+00:3>>) -> tensor<2xi8>
      // CHECK: %[[CONVERT_2:.*]] = mhlo.bitcast_convert %[[CONVERT_1]] : (tensor<2xi8>) -> tensor<2x!quant.uniform<i8:f32, 1.000000e+00:3>>
      // CHECK: %[[DEQUANTIZE:.*]] = mhlo.uniform_dequantize %[[CONVERT_2]] : (tensor<2x!quant.uniform<i8:f32, 1.000000e+00:3>>) -> tensor<2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 01:25:29 UTC 2024
    - 37.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/Converter.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.beans;
    
    /**
     * 文字列とオブジェクトの変換を行なうインターフェースです。
     *
     * @author higa
     */
    public interface Converter {
    
        /**
         * 値を文字列として返します。
         *
         * @param value
         *            値
         * @return 文字列としての値
         */
        String getAsString(Object value);
    
        /**
         * 値をオブジェクトとして返します。
         *
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. pkg/bootstrap/option/convert.go

    }
    
    func durationConverter(value *durationpb.Duration) convertFunc {
    	return func(*instance) (any, error) {
    		return value.AsDuration().String(), nil
    	}
    }
    
    // openCensusAgentContextConverter returns a converter that returns the list of
    // distributed trace contexts to propagate with envoy.
    func openCensusAgentContextConverter(contexts []meshAPI.Tracing_OpenCensusAgent_TraceContext) convertFunc {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. pkg/wasm/convert.go

    				return nil, nil, nil, fmt.Errorf("failed to convert extension config struct %+v to Wasm Network filter", typedStruct)
    			}
    		} else if typedStruct.TypeUrl == model.WasmNetworkFilterType {
    			wasmNetwork = true
    			if err := conversion.StructToMessage(typedStruct.Value, wasmNetworkFilterConfig); err != nil {
    				return nil, nil, nil, fmt.Errorf("failed to convert extension config struct %+v to Wasm HTTP filter", typedStruct)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/ir/QuantizeUtils.cc

                                   outConvertedType);
      }
      if (auto uniformQuantizedPerAxis =
              mlir::dyn_cast<quant::UniformQuantizedPerAxisType>(
                  quantizedElementType)) {
        UniformQuantizedPerAxisValueConverter converter(uniformQuantizedPerAxis);
        auto converted = converter.convert(realValue);
        // TODO: why we need this outConvertedType? remove it?
        if (converted) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

    // This helper function makes legality check easier. Both convert ops in the
    // patterns below are considered legal:
    //  - `BitcastConvertOp` (i32 -> f32) + `ConvertOp` (f32 -> bf16)
    //  - `ConvertOp` (bf16 -> f32) -> `BitcastConvertOp` (f32 -> i32)
    template <typename ConvertOp, typename OtherConvertOp>
    bool IsConvertOpLegal(ConvertOp convert_op, BFloat16TypeConverter& converter) {
      if (!converter.isLegal(convert_op.getOperand().getType())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/convert.go

    */
    
    package schema
    
    import (
    	"fmt"
    
    	"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
    	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
    )
    
    // NewStructural converts an OpenAPI v3 schema into a structural schema. A pre-validated JSONSchemaProps will
    // not fail on NewStructural. This means that we require that:
    //
    // - items is not an array of schemas
    // - the following fields are not set:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top