Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for GetNumInputs (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_remaining_ops.cc

                  "contain 'host_func' function.";
    
      if (op->getNumOperands() != func.getFunctionType().getNumInputs())
        return op.emitError()
               << "'host_func' has " << func.getFunctionType().getNumInputs()
               << " inputs and '_XlaHostComputeMlir' has " << op->getNumOperands()
               << " operands.  Number of operands/inputs should be the same.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 20:05:58 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/mlir_tflite_runner.cc

      // TODO(jpienaar): Expand to support inputs.
      mlir::func::FuncOp main = module->lookupSymbol<mlir::func::FuncOp>("main");
      QCHECK(main) << "No 'main' function specified.";
      if (main.getFunctionType().getNumInputs() != 0)
        LOG(QFATAL) << "NYI: Only nullary functions supported.";
    
      // Convert to flatbuffer.
      std::string serialized_flatbuffer;
      tflite::FlatbufferExportOptions options;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/lstm_utils.h

      virtual llvm::StringRef GetCompositeOpName() { return kLstmCellSimple; }
    
      // Rewrite the func body with constructed fused lstm.
      LogicalResult RewriteFunc();
    
      int GetNumInputs() { return n_input_; }
    
     protected:
      // verify input func op arguments/attributes and initialize internal state.
      virtual LogicalResult InitializeFromFuncAttributes();
      virtual LogicalResult Initialize();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      }
    
      auto func_type = func.getFunctionType();
    
      if (func_type.getNumInputs() != 2) {
        return op.emitOpError()
               << "expects reduction function to take 2 parameters, but "
                  "has "
               << func_type.getNumInputs() << " parameter(s)";
      }
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

      // input and the outputs are all using this type and predicate is tensor<i1>
      // type).
      if (mlir::isa<FunctionType>(types.front())) {
        FunctionType type = mlir::cast<FunctionType>(types.front());
        if (type.getNumInputs() < 2)
          return parser.emitError(parser.getNameLoc())
                 << " expects a single data type and a predicate";
        result.types.assign(type.getResults().begin(), type.getResults().end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

      builder.create<func::ReturnOp>(func.getLoc(), op.getResults());
      return success();
    }
    
    LogicalResult VerifySgnnProjection(func::FuncOp func, FuncAttr attr) {
      if (func.getFunctionType().getNumInputs() != 2 ||
          func.getFunctionType().getNumResults() != 1) {
        return func.emitError() << "Mismatched number of inputs and outputs.";
      }
      auto values_type = GetInputType(func, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

                             func::FuncOp fn, OpBuilder* builder) {
      FunctionType fn_type = fn.getFunctionType();
      llvm::SmallVector<Value, 4> operands;
      int num_operands = fn_type.getNumInputs();
      operands.reserve(num_operands);
      for (int i = 0; i < num_operands; ++i) {
        Value val = get_arg(i);
        Type expected = fn_type.getInput(i);
        if (val.getType() != expected) {
          val =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

      for (func::FuncOp func : {op.cond_function(), op.body_function()}) {
        ++func_index;
        if (!func) continue;
    
        FunctionType func_type = func.getFunctionType();
        int num_inputs = func_type.getNumInputs();
        int num_results = func_type.getNumResults();
    
        // For each argument type in function's arguments, change it to uranked
        // tensor type if it's a variant type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

          module.lookupSymbol<mlir::func::FuncOp>("main");
      TF_RET_CHECK(main_func != nullptr) << "No main function found";
      mlir::FunctionType func_type = main_func.getFunctionType();
    
      int num_args = func_type.getNumInputs();
      xla_input_shapes->reserve(num_args);
    
      std::vector<xla::Shape> individual_arg_shapes;
      individual_arg_shapes.reserve(num_args);
      for (int i = 0; i < num_args; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      FunctionType func_type = func.getFunctionType();
      bool needs_refinement = false;
      SmallVector<Type, 4> new_arg_types;
      new_arg_types.reserve(func_type.getNumInputs());
    
      // Update argument types in-place using the provided arg_shapes.
      for (size_t i = 0; i < func_type.getNumInputs(); ++i) {
        ArrayRef<int64_t> shape = arg_shapes[i];
        Type element_type;
        if (auto input_ty =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top