Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for func_0 (0.27 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/tests/pick-subgraphs.mlir

        %2 = func.call @func_2_CPU_FLOAT(%0, %1) {tac.device = "CPU", tac.inference_type = "FLOAT", tac.interface_name = "func_2"} : (tensor<100xf32>, tensor<100xf32>) -> tensor<2x100xf32>
        func.return %2 : tensor<2x100xf32>
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/tests/get-alternative-subgraph.mlir

    module {
      func.func @simpleTest(%arg0: tensor<1xf32>, %arg1: tensor<1xf32>, %arg2: tensor<1xf32>, %arg3: tensor<1xf32>) -> tensor<2x1xf32> {
        %0 = func.call @func_0_GPU_FLOAT(%arg0, %arg1, %arg2) {tac.interface_name = "func_0"} : (tensor<1xf32>, tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
        %1 = func.call @func_1_GPU_FLOAT(%arg0, %arg3) {tac.interface_name = "func_1"} : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

     public:
      explicit ConvertEmbeddedLookupFunc(func::FuncOp func) : func_(func) {}
    
      void RewriteFunc() {
        func_->setAttr(kTFImplements,
                       StringAttr::get(func_.getContext(), "embedding_lookup"));
        Value lookup = func_.getArgument(1);
        Value value = func_.getArgument(0);
        auto output_type = func_.getFunctionType().getResult(0);
    
        OpBuilder builder(func_.getBody());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

        ret_operands.push_back(operand->getValue());
      }
      builder_.create<func::ReturnOp>(func_.getLoc(), ret_operands);
    
      auto arg_types = body.getArgumentTypes();
      auto result_types = body.getTerminator()->getOperandTypes();
      func_.setType(FunctionType::get(func_.getContext(), arg_types, result_types));
      *f = new MlirFunction(std::move(context_), std::move(module_), func_);
      return absl::OkStatus();
    }
    
    extern "C" {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/pcln.go

    func funcpctab(ctxt *Link, func_ *LSym, desc string, valfunc func(*Link, *LSym, int32, *Prog, int32, interface{}) int32, arg interface{}) *LSym {
    	dbg := desc == ctxt.Debugpcln
    	dst := []byte{}
    	sym := &LSym{
    		Type:      objabi.SRODATA,
    		Attribute: AttrContentAddressable | AttrPcdata,
    	}
    
    	if dbg {
    		ctxt.Logf("funcpctab %s [valfunc=%s]\n", func_.Name, desc)
    	}
    
    	val := int32(-1)
    	oldval := val
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  6. src/text/template/funcs.go

    	return m
    }
    
    // addValueFuncs adds to values the functions in funcs, converting them to reflect.Values.
    func addValueFuncs(out map[string]reflect.Value, in FuncMap) {
    	for name, fn := range in {
    		if !goodName(name) {
    			panic(fmt.Errorf("function name %q is not a valid identifier", name))
    		}
    		v := reflect.ValueOf(fn)
    		if v.Kind() != reflect.Func {
    			panic("value for " + name + " not a function")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental_test.cc

      TF_Function* funcs[1];
      DefineFunction(func_name_, &func_);
    
      TF_GraphCopyFunction(func_graph_, func_, nullptr, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      EXPECT_EQ(TF_GraphNumFunctions(func_graph_), 1);
      EXPECT_EQ(TF_GraphGetFunctions(func_graph_, funcs, 1, s_), 1);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      TF_GraphRemoveFunction(func_graph_, func_name_, s_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/func.go

    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    func (n *Func) editChildrenWithHidden(edit func(Node) Node) { editNodes(n.Body, edit) }
    
    func (f *Func) Type() *types.Type                { return f.Nname.Type() }
    func (f *Func) Sym() *types.Sym                  { return f.Nname.Sym() }
    func (f *Func) Linksym() *obj.LSym               { return f.Nname.Linksym() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

      ASSERT_TRUE(module_op);
    
      auto func_op = module_op->lookupSymbol<func::FuncOp>("fully_quantized_add");
      ASSERT_THAT(func_op, NotNull());
    
      auto add_op_itr = func_op.getBody().op_begin<mlir::stablehlo::AddOp>();
      ASSERT_THAT(add_op_itr,
                  Ne(func_op.getBody().op_end<mlir::stablehlo::AddOp>()));
    
      EXPECT_TRUE(IsOpFullyQuantized(*add_op_itr));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

          }
          SymbolTable::setSymbolName(func_op, new_func_name);
        }
        // Move all functions from XlaCallModuleOp's stablehlo module, to parent
        // module. Also marks the stablehlo module entry function as private.
        func::FuncOp main_fn;
        for (auto func_op : stablehlo_module_op.get().getOps<func::FuncOp>()) {
          func::FuncOp cloned_func_op = func_op.clone();
          if (IsShloMainFuncOp(cloned_func_op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top