Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 166 for typefix (0.23 sec)

  1. pkg/typemap/map.go

    }
    
    func Set[T any](t TypeMap, v T) {
    	interfaceType := reflect.TypeOf((*T)(nil)).Elem()
    	t.inner[interfaceType] = v
    }
    
    func Get[T any](t TypeMap) *T {
    	v, f := t.inner[reflect.TypeFor[T]()]
    	if f {
    		return ptr.Of(v.(T))
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc

               kCrossHardwareTransferFixedCost;
      }
    
      mlir::RewritePatternSet GetTransformations(
          MLIRContext* context) const override {
        return {context};
      }
    
      mlir::TypeID GetTypeId() const override {
        return mlir::TypeID::get<CpuHardware>();
      }
    
      bool IsOpSupported(mlir::Operation* op) const override {
        // All ops in TFL dialect are supported on CPU.
        if (op->getDialect() == nullptr) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_ops.cc

    // TfrtDelegate Dialect
    //===----------------------------------------------------------------------===//
    
    RuntimeFallbackDialect::RuntimeFallbackDialect(MLIRContext *context)
        : Dialect(/*name=*/"tfd", context, TypeID::get<RuntimeFallbackDialect>()) {
      allowUnknownTypes();
    
      allowUnknownOperations();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/runtime_fallback_ops.cc.inc"
          >();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 20 20:56:11 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/README.md

        patterns.add<LowerPackIntoConcatReshape, UnrollSplit, UnrollSplitV,
                      PadSlice>(context);
        return patterns;
      }
    
      mlir::TypeID GetTypeId() const override {
        return mlir::TypeID::get<FooHardware>();
      }
    
      // We can specify what ops are not supported here.
      bool IsNotSupportedOp(mlir::Operation* op) const override { return false; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 29 18:32:13 UTC 2022
    - 11.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/gpu_ops.cc

    #include "tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.h"
    
    namespace tfrt {
    namespace gpu {
    
    GpuRuntimeDialect::GpuRuntimeDialect(MLIRContext *context)
        : Dialect(/*name=*/"gpurt", context, TypeID::get<GpuRuntimeDialect>()) {
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/gpu_ops.cpp.inc"
          >();
    }
    
    }  // namespace gpu
    }  // namespace tfrt
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 00:21:42 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. src/internal/profile/encode.go

    	return valueTypeDecoder
    }
    
    func (p *ValueType) encode(b *buffer) {
    	encodeInt64Opt(b, 1, p.typeX)
    	encodeInt64Opt(b, 2, p.unitX)
    }
    
    var valueTypeDecoder = []decoder{
    	nil, // 0
    	// optional int64 type = 1
    	func(b *buffer, m message) error { return decodeInt64(b, &m.(*ValueType).typeX) },
    	// optional int64 unit = 2
    	func(b *buffer, m message) error { return decodeInt64(b, &m.(*ValueType).unitX) },
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  7. src/encoding/asn1/asn1.go

    	return
    }
    
    var (
    	bitStringType        = reflect.TypeFor[BitString]()
    	objectIdentifierType = reflect.TypeFor[ObjectIdentifier]()
    	enumeratedType       = reflect.TypeFor[Enumerated]()
    	flagType             = reflect.TypeFor[Flag]()
    	timeType             = reflect.TypeFor[time.Time]()
    	rawValueType         = reflect.TypeFor[RawValue]()
    	rawContentsType      = reflect.TypeFor[RawContent]()
    	bigIntType           = reflect.TypeFor[*big.Int]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.cc

    #include <utility>
    
    #include "mlir/IR/PatternMatch.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "mlir/Support/TypeID.h"  // from @llvm-project
    #include "mlir/Transforms/GreedyPatternRewriteDriver.h"  // from @llvm-project
    #include "stablehlo/dialect/StablehloOps.h"  // from @stablehlo  // IWYU pragma: keep
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 21 20:11:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

    #include "mlir/Support/LLVM.h"  // from @llvm-project
    
    namespace tfrt {
    namespace fallback {
    
    FallbackDialect::FallbackDialect(MLIRContext *context)
        : Dialect(/*name=*/"tfrt_fallback", context,
                  TypeID::get<FallbackDialect>()) {
      addTypes<TFTensorType, TFAllocatorType>();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cpp.inc"
          >();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_sync.cc

    namespace tfrt {
    namespace fallback_sync {
    
    FallbackSyncDialect::FallbackSyncDialect(MLIRContext *context)
        : Dialect(/*name=*/"tfrt_fallback_sync", context,
                  TypeID::get<FallbackSyncDialect>()) {
      context->getOrLoadDialect<tfrt::fallback::FallbackDialect>();
      context->getOrLoadDialect<compiler::TFRTDialect>();
      context->getOrLoadDialect<corert::CoreRTDialect>();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 01:32:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top