Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for typecast (0.39 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

    }
    
    static mlir::Attribute BuildI64ArrayAttr(std::vector<int32_t> value,
                                             mlir::Builder builder) {
      std::vector<int64_t> typecast(value.begin(), value.end());
      return builder.getI64ArrayAttr(typecast);
    }
    
    static mlir::Attribute BuildVhloBooleanV1Attr(bool value,
                                                  mlir::Builder builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/fingerprinting_utils.cc

                  a.at(i).map_key();
              switch (key.type_case()) {
                case ::tensorflow::proto_splitter::FieldIndex::MapKey::TypeCase::kS:
                  if (chunked_key.has_s() && chunked_key.s() == key.s()) {
                    matches += 1;
                  }
                  break;
                case ::tensorflow::proto_splitter::FieldIndex::MapKey::TypeCase::
                    kBoolean:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  3. test/typeparam/typelist.go

    cui fliter <******@****.***> 1711120077 +0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/go/types/typelists.go

    	}
    	return l.tparams
    }
    
    // TypeList holds a list of types.
    type TypeList struct{ types []Type }
    
    // newTypeList returns a new TypeList with the types in list.
    func newTypeList(list []Type) *TypeList {
    	if len(list) == 0 {
    		return nil
    	}
    	return &TypeList{list}
    }
    
    // Len returns the number of types in the list.
    // It is safe to call on a nil receiver.
    func (l *TypeList) Len() int { return len(l.list()) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typelists.go

    	}
    	return l.tparams
    }
    
    // TypeList holds a list of types.
    type TypeList struct{ types []Type }
    
    // newTypeList returns a new TypeList with the types in list.
    func newTypeList(list []Type) *TypeList {
    	if len(list) == 0 {
    		return nil
    	}
    	return &TypeList{list}
    }
    
    // Len returns the number of types in the list.
    // It is safe to call on a nil receiver.
    func (l *TypeList) Len() int { return len(l.list()) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 28 22:21:55 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. src/runtime/alg.go

    		// typehash, but we want to report the topmost type in
    		// the error text (e.g. in a struct with a field of slice type
    		// we want to report the struct, not the slice).
    		panic(errorString("hash of unhashable type " + toRType(t).string()))
    	}
    	if isDirectIface(t) {
    		return c1 * typehash(t, unsafe.Pointer(&a.data), h^c0)
    	} else {
    		return c1 * typehash(t, a.data, h^c0)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/go/types/typestring.go

    				w.string(f.pkg.Path())
    				w.string(" */ ")
    			}
    			if tag := t.Tag(i); tag != "" {
    				w.byte(' ')
    				// TODO(gri) If tag contains blanks, replacing them with '#'
    				//           in Context.TypeHash may produce another tag
    				//           accidentally.
    				w.string(strconv.Quote(tag))
    			}
    		}
    		w.byte('}')
    
    	case *Pointer:
    		w.byte('*')
    		w.typ(t.base)
    
    	case *Tuple:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.h

    // The MLIR type represents a C++ mlrt::Future.
    class FutureType
        : public mlir::Type::TypeBase<FutureType, mlir::Type, mlir::TypeStorage> {
     public:
      using Base::Base;
      static constexpr mlir::StringLiteral name = "mlrt.compiler.future";
    };
    
    // The MLIR type represents a C++ mlrt::Promise.
    class PromiseType
        : public mlir::Type::TypeBase<PromiseType, mlir::Type, mlir::TypeStorage> {
     public:
      using Base::Base;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/typestring.go

    				w.string(f.pkg.Path())
    				w.string(" */ ")
    			}
    			if tag := t.Tag(i); tag != "" {
    				w.byte(' ')
    				// TODO(gri) If tag contains blanks, replacing them with '#'
    				//           in Context.TypeHash may produce another tag
    				//           accidentally.
    				w.string(strconv.Quote(tag))
    			}
    		}
    		w.byte('}')
    
    	case *Pointer:
    		w.byte('*')
    		w.typ(t.base)
    
    	case *Tuple:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/type_list_attr.mlir

        // CHECK-NEXT:  }
        // CHECK:       key: "typelist"
        // CHECK-NEXT:  value {
        // CHECK-NEXT:    list {
        // CHECK-NEXT:      type: DT_INT32
        // CHECK-NEXT:      type: DT_FLOAT
        // CHECK-NEXT:    }
        // CHECK-NEXT:  }
        %0:2 = tf_executor.island wraps "tf.Placeholder"() {name = "dummy", dtype = "tfdtype$DT_FLOAT", emptylist = [], typelist = ["tfdtype$DT_INT32", "tfdtype$DT_FLOAT"]} : () -> tensor<*xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 700 bytes
    - Viewed (0)
Back to top