Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 86 for function_type (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      }
      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)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

    void UpdateFuncType(func::FuncOp func) {
      auto arg_types = func.front().getArgumentTypes();
      auto result_types = func.front().getTerminator()->getOperandTypes();
      func.setType(FunctionType::get(func.getContext(), arg_types, result_types));
    }
    
    void HandleFuncOp(Operation* op) {
      auto func = llvm::cast<func::FuncOp>(op);
      UpdateFuncType(func);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      if (extern_values_passthrough)
        for (auto input : extern_values) return_types.push_back(input.getType());
      if (only_one_return_value) {
        return_types.resize(1);
      }
    
      auto type = FunctionType::get(region.getContext(), input_types, return_types);
    
      // Create new function and extract region body into the function.
      auto outlined_func = builder.create<func::FuncOp>(loc, name, type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        SymbolTableCollection& symbol_table, Operation* op,
        ArrayRef<Attribute> branches,
        llvm::function_ref<std::string(unsigned branch_index)> branch_name) {
      SmallVector<FunctionType, 2> branch_types;
      branch_types.reserve(branches.size());
    
      if (llvm::any_of(op->getOperands(),
                       [](Value value) { return value == nullptr; }))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

    void UpdateFuncType(func::FuncOp func) {
      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()));
    }
    
    // Holds the size value of a tensor list and whether the size is statically
    // known (fixed).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

    void UpdateFuncType(func::FuncOp func) {
      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()));
    }
    
    // Finds the accessed gradient sources for each tensor array argument.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    </pre>
    
    <pre>
    *Point
    *[4]int
    </pre>
    
    <h3 id="Function_types">Function types</h3>
    
    <p>
    A function type denotes the set of all functions with the same parameter
    and result types. The value of an uninitialized variable of function type
    is <code>nil</code>.
    </p>
    
    <pre class="ebnf">
    FunctionType   = "func" Signature .
    Signature      = Parameters [ Result ] .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      auto new_argument_types = llvm::to_vector(func_body.getArgumentTypes());
      auto new_result_types =
          llvm::to_vector(func_body.getTerminator()->getOperandTypes());
      func.setType(FunctionType::get(builder.getContext(), new_argument_types,
                                     new_result_types));
    }
    
    // Replaces a function terminator `return` with another `return` that has an
    // extra `mhlo.token` operand.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  9. doc/go_spec.html

    </pre>
    
    <pre>
    *Point
    *[4]int
    </pre>
    
    <h3 id="Function_types">Function types</h3>
    
    <p>
    A function type denotes the set of all functions with the same parameter
    and result types. The value of an uninitialized variable of function type
    is <code>nil</code>.
    </p>
    
    <pre class="ebnf">
    FunctionType   = "func" Signature .
    Signature      = Parameters [ Result ] .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

          auto scalar = RankedTensorType::get({}, input_type.getElementType());
          expected_callee_input_types.push_back(scalar);
          expected_callee_input_types.push_back(scalar);
        }
        FunctionType expected_callee_type = mlir::FunctionType::get(
            op->getContext(), expected_callee_input_types,
            RankedTensorType::get({}, IntegerType::get(op->getContext(), 1)));
        if (callee_type != expected_callee_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top