Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 154 for result_types (0.2 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

        // Result types.
        SmallVector<Type, 4> result_types;
        for (auto result_type : op->getResultTypes()) {
          if (IsQI8Type(result_type) || IsQUI8Type(result_type)) {
            auto dequantized_result_type =
                mlir::quant::QuantizedType::castToExpressedType(result_type);
            result_types.push_back(dequantized_result_type);
          } else {
            result_types.push_back(result_type);
          }
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batch_function_fallback_benchmark_test.cc

      CHECK(func);
      CHECK_EQ(func->result_types().size(), 113);
      CHECK_EQ(func->argument_types().size(), 113);
    
      auto arguments = CreateTestArguments(func, host);
    
      tfrt::ResourceContext resource_ctx;
      auto exec_ctx = tfd::CreateFallbackTestExecutionContext(host, &resource_ctx);
    
      std::vector<tfrt::RCReference<tfrt::AsyncValue>> results;
      results.resize(func->result_types().size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 08:08:48 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
      mlir::OpBuilder builder(module_ref->getBodyRegion());
    
      llvm::SmallVector<mlir::Type, 8> result_types;
      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          mlir::UnknownLoc::get(&context), result_types);
      cluster->setAttr(kNumCoresPerReplicaAttr,
                       builder.getIntegerAttr(builder.getIntegerType(64), 1));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      // Create attributes used for creating an XlaCallModuleOp.
      SmallVector<Attribute> shape_attrs;
      for (const Type result_type : result_types) {
        shape_attrs.push_back(
            tf_type::ShapeAttr::get(ctx, mlir::cast<ShapedType>(result_type)));
      }
      const auto empty_array_attr = ArrayAttr::get(ctx, {});
      // TODO: b/310291615 - find a better way for platform support.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_compile_util.h

    // apart from the arg and retval nodes corresponding to `args` and
    // `result_types` respectively.
    absl::StatusOr<std::unique_ptr<Graph>> CreateSingleOpGraph(
        const NodeDef& node_def, absl::Span<const XlaArgument> args,
        absl::Span<const DataType> result_types);
    
    // Checks if single device compilation and execution with PJRT is enabled for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

      Operation* last_cluster_op = cluster_ops.back();
      OpBuilder builder(last_cluster_op);
    
      llvm::SmallVector<Type, 8> result_types;
      for (Value result : results) result_types.push_back(result.getType());
      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          last_cluster_op->getLoc(), result_types);
    
      Block* body = new Block;
      cluster.getBody().push_back(body);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        SmallVector<Type, 4> result_types;
        for (Value result : call_op->getResults()) {
          TensorType result_type = mlir::dyn_cast<TensorType>(result.getType());
          if (!result_type) {
            result_types.push_back(result.getType());
            continue;
          }
          QuantizedType qtype =
              mlir::dyn_cast<QuantizedType>(result_type.getElementType());
          if (!qtype) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

        if (IsOnLocalHost(host)) continue;
    
        llvm::SmallVector<mlir::Type, 4> input_types;
        llvm::SmallVector<mlir::Type, 4> result_types;
        for (Value input : metadata.inputs) {
          input_types.push_back(input.getType());
        }
        for (Value result : metadata.results) {
          result_types.push_back(result.getType());
        }
    
        // Replaces ':' and '/' with '_' in the host name and uses the resulting
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

        std::vector<mlir::Type> result_types;
    
        for (mlir::Type t : op.getResultTypes()) {
          auto ty = mlir::cast<mlir::TensorType>(t);
          if (!ty.hasStaticShape()) return mlir::WalkResult::interrupt();
          result_types.push_back(t);
        }
    
        auto layout = mlir::GetTPUInfeedLayout(
            mlir::TupleType::get(builder.getContext(), result_types), builder);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_compile_util.cc

      for (int64_t i = 0, end = result_types.size(); i < end; ++i) {
        Node* node;
        string retval_name = absl::StrCat("_retval", i);
        Status status = NodeBuilder(retval_name, FunctionLibraryDefinition::kRetOp)
                            .Input(main_node, i)
                            .Attr("T", result_types[i])
                            .Attr("index", i)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top