Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 57 of 57 for funcType (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      Append(result_types, callers.core_tpu->getResultTypes());
    
      // Create the function based on input and result types and values.
      auto func_type =
          mlir::FunctionType::get(builder.getContext(), input_types, result_types);
      func::FuncOp then_func = func::FuncOp::create(loc, name, func_type);
      then_func.setPrivate();
      symbol_table.insert(then_func);
      mlir::OpBuilder func_builder =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  2. 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];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      // of nodes from the graph are given to converted to the arguments and returns
      // of the function.
      Status Convert(llvm::StringRef func_name, mlir::FunctionType func_type,
                     const absl::InlinedVector<OutputTensor, 4>& arg_nodes,
                     const absl::InlinedVector<OutputTensor, 4>& ret_nodes,
                     const absl::InlinedVector<Node*, 4>& control_ret_nodes,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        OpBuilder builder(module_);
        builder.setInsertionPointToEnd(&module_.getBodyRegion().back());
        const auto func_type =
            builder.getFunctionType(/*inputs=*/{}, /*results=*/{});
        auto summary_func = builder.create<func::FuncOp>(
            builder.getUnknownLoc(), /*sym_name=*/"summary", func_type);
        summary_func.setPrivate();
        summary_func->setAttr("quantization_summary",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

          return type_or_err.status();
        }
        auto type = std::move(type_or_err).value();
        ret_types.push_back(type);
      }
      auto func_type = builder.getFunctionType(input_types, ret_types);
    
      // Construct function object
      auto func = FuncOp::create(func_loc, name, func_type, /* attrs= */ {});
      func.addEntryBlock();
      auto& body = func.getBody();
      OpBuilder op_builder{body};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      output_types.reserve(outputs.size());
      for (Value v : outputs) output_types.emplace_back(v.getType());
    
      auto func_type = builder->getFunctionType(operand_types, output_types);
    
      FuncOp outlined_func =
          FuncOp::create(ops.front()->getLoc(), kHostFunctionAttr, func_type);
    
      // Create function body.
      Block* outlined_func_block = outlined_func.addEntryBlock();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (!func) {
        return op.emitOpError() << "has no reduction function specified";
      }
    
      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)
Back to top