Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetUniqueNameForOp (0.26 sec)

  1. tensorflow/cc/framework/scope_test.cc

      EXPECT_EQ(root.GetUniqueNameForOp("foo_1"), "foo_1_1");
      EXPECT_EQ(root.GetUniqueNameForOp("foo_2"), "foo_2");
      EXPECT_EQ(root.GetUniqueNameForOp("foo"), "foo_3");
      EXPECT_EQ(root.GetUniqueNameForOp("foo_2"), "foo_2_1");
    }
    
    TEST(ScopeTest, HierarchicalNames) {
      Scope root = Scope::NewRootScope();
      Scope child = root.NewSubScope("child");
      EXPECT_EQ(child.GetUniqueNameForOp("add"), "child/add");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 08:17:37 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/cc/ops/const_op.h

      // can be directly called here instead of adding the Cast op to the graph.
      auto orig_const = AsNodeOut(scope, orig_const_output);
      const auto cast_op_name = scope.GetUniqueNameForOp("Cast");
    
      auto cast_builder = NodeBuilder(cast_op_name, "Cast")
                              .Input(orig_const)
                              .Attr("DstT", DataTypeToEnum<DstT>::v());
      scope.UpdateBuilder(&cast_builder);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 17 09:17:01 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/scope_internal.h

      std::shared_ptr<NameMap> name_map_ = nullptr;
      std::shared_ptr<ShapeRefiner> refiner_ = nullptr;
    
      // If scope_used_ is not nullptr, op_name_ should be empty and
      // GetUniqueNameForOp can only be called once on this scope. More calls to
      // GetUniqueNameForOp will cause an error status to be set on this scope.
      std::shared_ptr<bool> scope_used_ = nullptr;
    
      const std::vector<Operation> control_deps_;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:46:43 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/cc/ops/const_op.cc

    template <typename T>
    Output ConstHelper(const Scope& scope, const T& value, DataType dtype) {
      if (!scope.ok()) return Output();
    
      Node* ret;
      Graph* graph = scope.graph();
      const string unique_name = scope.GetUniqueNameForOp("Const");
      auto builder = NodeBuilder(unique_name, "Const")
                         .Attr("value", value)
                         .Attr("dtype", dtype);
      scope.UpdateBuilder(&builder);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 03 20:58:54 UTC 2017
    - 2.7K bytes
    - Viewed (0)
  5. tensorflow/cc/ops/while_loop.cc

                                      next_output_index, dtype);
    
      std::vector<NodeBuilder::NodeOut> input_list({enter_input, next_input});
      const string unique_name = scope.GetUniqueNameForOp("Merge");
      NodeBuilder builder = NodeBuilder(unique_name, "Merge").Input(input_list);
      scope.UpdateBuilder(&builder);
    
      Node* merge_node;
      TF_RETURN_IF_ERROR(builder.Finalize(scope.graph(), &merge_node));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 01:01:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top