Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for addTypes (0.27 sec)

  1. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.cc

      }
    };
    
    }  // namespace
    
    MlrtDialect::MlrtDialect(mlir::MLIRContext *context)
        : mlir::Dialect(/*name=*/"mlrt", context,
                        mlir::TypeID::get<MlrtDialect>()) {
      addTypes<FutureType>();
      addTypes<PromiseType>();
      addTypes<AsyncHandleType>();
      addInterfaces<MlrtInlinerInterface>();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.cpp.inc"
          >();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/debug/dwarf/open.go

    		return nil, err
    	}
    	d.unit = u
    	return d, nil
    }
    
    // AddTypes will add one .debug_types section to the DWARF data. A
    // typical object with DWARF version 4 debug info will have multiple
    // .debug_types sections. The name is used for error reporting only,
    // and serves to distinguish one .debug_types section from another.
    func (d *Data) AddTypes(name string, types []byte) error {
    	return d.parseTypes(name, types)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

    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"
          >();
    }
    
    /// Parse a type registered to this dialect.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc

          .def(py::init([](mlir::Location loc, std::string name) {
            return mlir::OperationState(loc, llvm::StringRef(name));
          }))
          .def("addTypes",
               [](mlir::OperationState& state, std::vector<mlir::Type> tys) {
                 state.addTypes(mlir::ArrayRef<mlir::Type>(tys));
               })
          .def("addOperands",
               [](mlir::OperationState& os, std::vector<mlir::Value> ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.cc

    };
    
    }  // namespace
    
    TensorflowMlrtDialect::TensorflowMlrtDialect(mlir::MLIRContext *context)
        : mlir::Dialect(/*name=*/"tf_mlrt", context,
                        mlir::TypeID::get<TensorflowMlrtDialect>()) {
      addTypes<TFTensorType, TFDeviceType>();
      addInterfaces<TensorflowMlrtInlinerInterface>();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.cpp.inc"
          >();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/gpu_fusion.cc

                             _FusedBatchNormExOp::getOperationName());
        state.addOperands(batch_norm.getOperands());
        if (side_input) state.operands.push_back(side_input);
        state.addTypes(batch_norm.getResultTypes());
        state.addAttributes(batch_norm->getAttrs());
        Operation *op = rewriter.create(state);
        rewriter.replaceOp(batch_norm, op->getResults());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.pyi

    class OperationState:
        def __init__(self, arg0: Location, arg1: str) -> None: ...
        def addOperands(self, arg0: list[Value]) -> None: ...
        def addRegion(self) -> Region: ...
        def addTypes(self, arg0: list[Type]) -> None: ...
    
    class RankedTensorType(Type):
        def __init__(self, *args, **kwargs) -> None: ...
        def get(self, arg0: Type) -> RankedTensorType: ...
    
    class Region:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 09 17:10:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      // Create the TF op
      const std::string tf_op_full_name = absl::StrCat("tf.", node_def.op());
      mlir::OperationState op_state(loc, tf_op_full_name);
      op_state.addOperands(func.getArguments());
      op_state.addTypes(output_tys);
      op_state.addAttributes(attrs);
      mlir::Operation* tf_op = op_builder.create(op_state);
      op_builder.create<mlir::func::ReturnOp>(loc, tf_op->getResults());
    
      // Run the decompose passes on the module
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    			addType(T.Elem())
    		case *types.Slice:
    			addType(T.Elem())
    		case *types.Array:
    			addType(T.Elem())
    		case *types.Chan:
    			addType(T.Elem())
    		case *types.Map:
    			addType(T.Key())
    			addType(T.Elem())
    		case *types.Signature:
    			addType(T.Params())
    			addType(T.Results())
    			if tparams := T.TypeParams(); tparams != nil {
    				for i := 0; i < tparams.Len(); i++ {
    					addType(tparams.At(i))
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. test/typeparam/adder.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    type AddType interface {
    	int | int64 | string
    }
    
    // Add can add numbers or strings
    func Add[T AddType](a, b T) T {
    	return a + b
    }
    
    func main() {
    	if got, want := Add(5, 3), 8; got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 559 bytes
    - Viewed (0)
Back to top