Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 85 for function_type (0.36 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

                        val functionLiteral = parentExpression.parent as? KtFunctionLiteral
                        if (functionLiteral != null) {
                            val functionalType = getExpectedType(functionLiteral) as? KaFunctionalType
                            functionalType?.returnType?.let { return it }
                        }
                    }
                }
    
                is KtWhenEntry -> {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc

        func::FuncOp func = cluster_func.getFuncOp();
        Block& block = func.front();
        for (Value read_operand : read_operands)
          block.addArgument(read_operand.getType(), loc);
    
        func.setType(FunctionType::get(&getContext(), block.getArgumentTypes(),
                                       func.getResultTypes()));
        cluster_func.erase();
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

          arg.setType(resultType);
        }
        llvm::SmallVector<Type, 8> arg_types;
        for (auto arg : func.getArguments()) arg_types.push_back(arg.getType());
        func.setType(
            FunctionType::get(func.getContext(), arg_types,
                              func.front().getTerminator()->getOperandTypes()));
        return WalkResult::advance();
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

            absl::StrCat(iter.second.original_name.str(), ":", host.str());
        std::replace(func_name.begin(), func_name.end(), ':', '_');
        std::replace(func_name.begin(), func_name.end(), '/', '_');
    
        FunctionType func_type =
            FunctionType::get(context, input_types, result_types);
        Location loc = metadata.ops.front()->getLoc();
        func::FuncOp func_op = func::FuncOp::create(loc, func_name, func_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    }
    
    // FunctionType is a function type.
    type FunctionType struct {
    	Return AST
    	Args   []AST
    
    	// The forLocalName field reports whether this FunctionType
    	// was created for a local name. With the default GNU demangling
    	// output we don't print the return type in that case.
    	ForLocalName bool
    }
    
    func (ft *FunctionType) print(ps *printState) {
    	retType := ft.Return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

    }
    
    func::FuncOp CreateSessionInitFunc(ModuleOp module) {
      constexpr char kSessionInitFuncName[] = "SessionInitializerFunction";
    
      mlir::OpBuilder builder(module.getBodyRegion());
      auto func_type =
          FunctionType::get(module.getContext(), /*inputs=*/{}, /*results=*/{});
      auto func = builder.create<func::FuncOp>(module->getLoc(),
                                               kSessionInitFuncName, func_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

      auto tensor_string_type =
          RankedTensorType::get({}, TF::StringType::get(builder.getContext()));
      main_func.getArguments().front().setType(tensor_string_type);
      main_func.setType(
          FunctionType::get(builder.getContext(), {tensor_string_type},
                            main_func.getFunctionType().getResults()));
      // Name of the main function for the eventual executable needs to be set.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc

            m.print(os);
            return os.str();
          });
    
      py::class_<mlir::func::FuncOp>(m, "FuncOp")
          .def("create",
               [](mlir::Location location, std::string name,
                  mlir::FunctionType type) {
                 auto func = mlir::func::FuncOp::create(location, name, type);
                 func.addEntryBlock();
                 return func;
               })
          .def(
              "getBody",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

                  module.getContext()));
    
          arg.setType(new_arg_type);
        }
    
        // Update the function type.
        func.setType(mlir::FunctionType::get(module.getContext(),
                                             func.getBody().getArgumentTypes(),
                                             func.getFunctionType().getResults()));
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        }
      }
    
      // Patch up function types (with less number of return values and potentially
      // less number of arguments)
      for (func::FuncOp func : cloned_branches) {
        func.setType(
            FunctionType::get(func.getContext(), func.front().getArgumentTypes(),
                              func.front().getTerminator()->getOperandTypes()));
      }
    
      EliminateUnusedResults(op);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top