Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for numbertype (0.41 sec)

  1. tensorflow/compiler/mlir/tfr/python/op_reg_gen_test.py

    
    Composite = composite.Composite
    
    
    @composite.Composite(
        'TestNoOp', derived_attrs=['T: numbertype'], outputs=['o1: T'])
    def _composite_no_op():
      pass
    
    
    @Composite(
        'TestCompositeOp',
        inputs=['x: T', 'y: T'],
        attrs=['act: {"", "relu"}', 'trans: bool = true'],
        derived_attrs=['T: numbertype'],
        outputs=['o1: T', 'o2: T'])
    def _composite_op(x, y, act, trans):
      return x + act, y + trans
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/resources/test_ops.cc

        .Input("input: T")
        .Output("output: T")
        .Attr("T: numbertype");
    
    REGISTER_OP("TestIdentityNOp")
        .Input("input: N * T")
        .Output("output: N * T")
        .Attr("N: int >= 1")
        .Attr("T: numbertype");
    
    REGISTER_OP("TestInputNOp")
        .Input("input: N * T")
        .Output("output: T")
        .Attr("N: int >= 1")
        .Attr("T: numbertype");
    
    REGISTER_OP("TestOutputNOp")
        .Input("input: T")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 07 23:35:35 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/resources/composite_ops.cc

    #include "tensorflow/core/framework/shape_inference.h"
    
    namespace tensorflow {
    
    REGISTER_OP("MyAddN")
        .Input("inputs: N * T")
        .Output("sum: T")
        .Attr("N: int >= 1")
        .Attr("T: {numbertype, variant}")
        .SetIsCommutative()
        .SetIsAggregate();
    
    REGISTER_OP("MyBiasedDense")
        .Input("input: T")
        .Input("weight: T")
        .Input("bias: T")
        .Output("out: T")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 23 21:28:23 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/define_op_template.py

    flags.DEFINE_bool('gen_register_op', True,
                      'Generate register op cc file or tfr mlir file.')
    
    flags.mark_flag_as_required('output')
    
    
    @Composite('TestRandom', derived_attrs=['T: numbertype'], outputs=['o: T'])
    def _composite_random_op():
      pass
    
    
    def main(_):
      if FLAGS.gen_register_op:
        assert FLAGS.output.endswith('.cc')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    			obj:    objs(int64(10), 10.0, 10.49, 10.5, true, "10", "MTA=", "3723.004s", "1h2m3s4ms", "2011-08-18T19:03:37.01+01:00", "2011-08-18T19:03:37.01+01:00", "2011-08-18T00:00:00Z", "2011-08-18"),
    			schema: schemas(integerType, numberType, numberType, numberType, booleanType, stringType, byteType, stringType, durationFormat, stringType, dateTimeFormat, stringType, dateFormat),
    			expectCost: map[string]int64{
    				"int(self.val2) == self.val1":         6,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx_test.cc

    namespace tensorflow {
    namespace {
    
    REGISTER_OP("MyAddN")
        .Input("inputs: N * T")
        .Output("sum: T")
        .Attr("N: int >= 1")
        .Attr("T: {numbertype, variant}")
        .SetIsCommutative()
        .SetIsAggregate()
        .SetShapeFn(shape_inference::UnchangedShape);
    
    REGISTER_OP("RiscAddDummy")
        .Input("x: T")
        .Input("y: T")
        .Output("z: T")
        .Attr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. tensorflow/c/ops.h

    // capital letters, the operator expects the user to provide the attribute value
    // at operation runtime.
    //
    // <type> can be:
    //   "string", "int", "float", "bool", "type", "shape", or "tensor"
    //   "numbertype", "realnumbertype", "quantizedtype"
    //       (meaning "type" with a restriction on valid values)
    //   "{int32,int64}" or {realnumbertype,quantizedtype,string}"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/encoding/json/decode.go

    	}
    	f, err := strconv.ParseFloat(s, 64)
    	if err != nil {
    		return nil, &UnmarshalTypeError{Value: "number " + s, Type: reflect.TypeFor[float64](), Offset: int64(d.off)}
    	}
    	return f, nil
    }
    
    var numberType = reflect.TypeFor[Number]()
    
    // literalStore decodes a literal stored in item into v.
    //
    // fromQuoted indicates whether this literal came from unwrapping a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			obj:    objs(int64(10), 10.0, 10.49, 10.5, true, "10", "MTA=", "3723.004s", "1h2m3s4ms", "2011-08-18T19:03:37.01+01:00", "2011-08-18T19:03:37.01+01:00", "2011-08-18T00:00:00Z", "2011-08-18"),
    			schema: schemas(integerType, numberType, numberType, numberType, booleanType, stringType, byteType, stringType, durationFormat, stringType, dateTimeFormat, stringType, dateFormat),
    			valid: []string{
    				"int(self.val2) == self.val1",
    				"int(self.val3) == self.val1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  10. src/encoding/json/encode.go

    	e.Write(b)
    }
    
    var (
    	float32Encoder = (floatEncoder(32)).encode
    	float64Encoder = (floatEncoder(64)).encode
    )
    
    func stringEncoder(e *encodeState, v reflect.Value, opts encOpts) {
    	if v.Type() == numberType {
    		numStr := v.String()
    		// In Go1.5 the empty string encodes to "0", while this is not a valid number literal
    		// we keep compatibility so check validity after this.
    		if numStr == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top