Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for _retval0 (0.17 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

        func.func @main(%arg0: tensor<3x3x10xbf16>, %arg1: tensor<3xi32>) -> tensor<1x?x4xbf16> attributes {allow_soft_placement = false, tf.entry_function = {control_outputs = "", inputs = "_arg0,_arg1,_arg2", outputs = "_retval0"}} {
          %cst = "tf.Const"() {value = dense<[1, -1, 4]> : tensor<3xi32>} : () -> tensor<3xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

    // CHECK-SAME: %[[STATE:.*]]: tensor<2xui64>
    func.func @xla_rng_bit_generator(%arg0: tensor<2xui64>) -> (tensor<2xui64>, tensor<10x12xui32>) attributes {tf.entry_function = {control_outputs = "", inputs = "_arg0,_arg1,_arg2", outputs = "_retval0,_retval1"}} {
      // CHECK-NEXT: %0 = mhlo.constant dense<[10, 12]> : tensor<2xi32>
      %cst = "tf.Const"() {value = dense<[10, 12]> : tensor<2xi32>} : () -> tensor<2xi32>
      // CHECK-NEXT: %1 = mhlo.constant dense<3> : tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

        StringPiece a_name(a->name());
        StringPiece b_name(b->name());
        return std::tie(a_is_resource, a_name) < std::tie(b_is_resource, b_name);
      });
    
      // Sorts the retvals by name so the order is deterministic.
      std::sort(retvals.begin(), retvals.end(),
                [](Node* a, Node* b) { return a->name() < b->name(); });
    
      // Computes the permutation to produce the correct argument order, and update
      // the argument indices.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

      // CHECK-LABEL: @const_input_required
      func.func @const_input_required(%arg0: tensor<10xf64>) -> tensor<?xf64> attributes {tf.entry_function = {control_outputs = "", inputs = "_arg0,_arg1,_arg2,_arg3", outputs = "_retval0"}} {
        %cst = "tf.Const"() {value = dense<6> : tensor<1xi32>} : () -> tensor<1xi32>
        %cst_0 = "tf.Const"() {value = dense<2> : tensor<1xi32>} : () -> tensor<1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

      might become the name of Retval nodes as well (with an index suffix if there
      are multiple output tensors from one node). Since Retval nodes are not used in
      SavedModel, this function removes them and restore the names to the actual
      output tensors.
    
      Args:
        graph_def: the converted GraphDef.
    
      Returns:
        The GraphDef with Retval nodes removed and output tensor names restored.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

        Output arg1 = ops::_Arg(s.WithOpName("arg1"), DT_RESOURCE, 1);
        Output arg2 = ops::_Arg(s.WithOpName("arg2"), DT_INT32, 2);
        auto ret0 = ops::_Retval(s.WithOpName("ret0"), arg1, 0);
        auto ret1 = ops::_Retval(s.WithOpName("ret1"), arg0, 1);
        auto ret2 = ops::_Retval(s.WithOpName("ret2"), arg2, 2);
        std::unique_ptr<Graph> g(new Graph(OpRegistry::Global()));
        TF_CHECK_OK(s.ToGraph(g.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/compilability_check_util.cc

        return false;
      }
    
      // _Arg nodes in a top-level function represent feeds and _Retval nodes in a
      // top-level function represent fetches.
      if (stack_depth == 1 &&
          (node.type_string() == "_Arg" || node.type_string() == "_Retval")) {
        absl::string_view uncompilable_reason = "top level _Arg or _Retval";
        MaybeMarkUncompilableNode(uncompilable_reason, *stack_trace,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

      for (auto sharding_and_retval :
           llvm::zip(sharding_for_rets, terminator->getOpOperands())) {
        const auto& sharding = std::get<0>(sharding_and_retval);
        OpOperand& retval = std::get<1>(sharding_and_retval);
        if (failed(VerifySharding(retval.get().getType(), sharding)))
          return mlir::failure();
      }
      return mlir::success();
    }
    
    // Assign the logical device if an op has an attribute `TPU_REPLICATED_CORE:n`,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

          StrEq("input_tensor:0"));
    
      // Match the `_Retval` node that corresponds to the return value of @main.
      const auto retval_node_itr =
          llvm::find_if(exported_model->graph_def().node(),
                        [](const NodeDef& node) { return node.op() == "_Retval"; });
      ASSERT_NE(retval_node_itr, exported_model->graph_def().node().end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_compile_util.cc

        TF_RETURN_IF_ERROR(status);
        graph->AddEdge(node, 0, main_node, i);
      }
    
      // Similarly with return values, create dummy _Retval nodes fed by `node`.
      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)
    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