Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 85 for node_def (0.17 sec)

  1. tensorflow/compiler/jit/xla_cluster_util.cc

             std::find(node.output_types().begin(), node.output_types().end(),
                       DT_RESOURCE) != node.output_types().end();
    }
    
    void RemoveFromXlaCluster(NodeDef* node_def) {
      node_def->mutable_attr()->erase(kXlaClusterAttr);
    }
    
    void RemoveFromXlaCluster(Node* node) { node->ClearAttr(kXlaClusterAttr); }
    
    namespace {
    typedef xla_config_registry::XlaGlobalJitLevel XlaGlobalJitLevel;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      EXPECT_TRUE(neg == neg2);
      NodeDef node_def2;
      ASSERT_TRUE(GetNodeDef(neg2, &node_def2));
      EXPECT_EQ(node_def.DebugString(), node_def2.DebugString());
    
      TF_Operation* feed2 = TF_GraphOperationByName(graph, "feed");
      EXPECT_TRUE(feed == feed2);
      ASSERT_TRUE(GetNodeDef(feed, &node_def));
      ASSERT_TRUE(GetNodeDef(feed2, &node_def2));
      EXPECT_EQ(node_def.DebugString(), node_def2.DebugString());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

        return false;
      }
      for (int i = 0; i < a.node_def_size(); ++i) {
        bool found = false;
        for (int j = 0; j < b.node_def_size(); ++j) {
          if (a.node_def(i).name() == b.node_def(j).name()) {
            if (!EqualFunctionNodeDef(
                    a.node_def(i), b.node_def(j),
                    absl::StrCat("Function ", a.signature().name()), diff)) {
              return false;
            }
            found = true;
            break;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/clone_constants_for_better_clustering.cc

    #include <string>
    
    #include "absl/algorithm/container.h"
    #include "tensorflow/compiler/jit/xla_cluster_util.h"
    #include "xla/status_macros.h"
    #include "tensorflow/core/framework/node_def.pb.h"
    #include "tensorflow/core/framework/tensor.pb.h"
    #include "tensorflow/core/util/dump_graph.h"
    
    namespace tensorflow {
    
    using tsl::StatusOr;
    
    class CloneConstantsForBetterClusteringPassImpl {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/reader.cc

    #include "tensorflow/cc/saved_model/util.h"
    #include "tensorflow/core/framework/attr_value.pb.h"
    #include "tensorflow/core/framework/function.pb.h"
    #include "tensorflow/core/framework/graph.pb.h"
    #include "tensorflow/core/framework/node_def.pb.h"
    #include "tensorflow/core/framework/tensor.pb.h"
    #include "tensorflow/core/lib/io/path.h"
    #include "tensorflow/core/lib/strings/str_util.h"
    #include "tensorflow/core/lib/strings/strcat.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 00:19:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        }
    
        const tensorflow::OpRegistrationData* op_reg_data =
            tensorflow::OpRegistry::Global()->LookUp(node_def.op());
        if (!op_reg_data) {
          // This is likely a function call node, so we should continue.
          continue;
        }
        ::tensorflow::AddDefaultsToNodeDef(op_reg_data->op_def, &node_def);
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

    FunctionDef PassThroughResource() {
      return FunctionDefHelper::Define(
          /*function_name=*/"PassThroughResource",
          /*arg_def=*/{"in: resource"},
          /*ret_def=*/{"out: resource"},
          /*attr_def=*/{},
          /*node_def=*/
          {{{"out"}, "Identity", {"in"}, {{"T", DataType::DT_RESOURCE}}}});
    }
    
    TEST(IsSupportedByNonReplicatedBridge, NonReplicatedGraph) {
      const FunctionDef& fd = PassThroughResource();
      FunctionDefLibrary flib;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

    )
    
    
    def _is_variable(node_def: node_def_pb2.NodeDef) -> bool:
      """Determines whether `node_def` is a variable node.
    
      Args:
        node_def: `NodeDef` to test whether it is a variable or not.
    
      Returns:
        Returns True if it is a variable.
      """
      return node_def.op == 'VarHandleOp'
    
    
    def _find_variables(
        graph_def: graph_pb2.GraphDef,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

    #include "tensorflow/compiler/jit/defs.h"
    #include "tensorflow/compiler/jit/encapsulate_subgraphs_pass.h"
    #include "tensorflow/compiler/jit/xla_cluster_util.h"
    #include "xla/status_macros.h"
    #include "tensorflow/core/framework/node_def.pb.h"
    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/graph/graph_node_util.h"
    #include "tensorflow/core/lib/core/stringpiece.h"
    #include "tensorflow/core/lib/hash/hash.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

    #include "mlir/IR/OwningOpRef.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/quantization/common/test_base.h"
    #include "tensorflow/core/framework/graph.pb.h"
    #include "tensorflow/core/framework/node_def.pb.h"
    #include "tensorflow/core/graph/graph.h"
    #include "tensorflow/core/protobuf/saver.pb.h"
    #include "tsl/platform/protobuf.h"  // IWYU pragma: keep
    #include "tsl/platform/status_matchers.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top