Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for nodedef (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def.h

    void MutateNodeDefs(tensorflow::GraphDef& graph_def, FuncT&& func) {
      for (tensorflow::NodeDef& node_def : *graph_def.mutable_node()) {
        func(node_def);
      }
    
      for (tensorflow::FunctionDef& function_def :
           *graph_def.mutable_library()->mutable_function()) {
        for (tensorflow::NodeDef& node_def : *function_def.mutable_node_def()) {
          func(node_def);
        }
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 28 18:38:06 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. tensorflow/cc/tools/freeze_saved_model.cc

        (*variable_name_to_value_map)[variable_names[i]] = outputs[i];
      }
      return OkStatus();
    }
    
    // Converts a Variable NodeDef into a Constant NodeDef.
    void ConvertVariableToConstant(const NodeDef& variable_node,
                                   const Tensor& variable_value,
                                   NodeDef* const_node) {
      const_node->set_name(variable_node.name());
      const_node->set_op("Const");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def_test.cc

      MutateNodeDefs(graph_def,
                     [](NodeDef& node_def) { node_def.set_name("bar"); });
    
      ASSERT_THAT(graph_def.library().function(), SizeIs(1));
      ASSERT_THAT(graph_def.library().function()[0].node_def(), SizeIs(1));
      EXPECT_THAT(graph_def.library().function()[0].node_def()[0].name(),
                  StrEq("bar"));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 28 18:38:06 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h

          StringPiece tfr_raw_text, mlir::MLIRContext* mlir_ctx);
    
      // Decomposes the op in the NodeDef to a set of primitive ops according to the
      // decompose library in the context. Wrap the decomposed result in a
      // FunctionDef.
      absl::StatusOr<FunctionDef> ExpandNode(const NodeDef& node_def,
                                             StringPiece func_name);
    
      // Runs the decompose passes on the user_module.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 11:12:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/c/kernels/bitcast_op_test.cc

        return cpu_allocator();
      }
    };
    
    void TestBitcastOp(Tensor* input_tensor, DataType out_type,
                       TensorShape expected_shape, error::Code expected_code) {
      Status status;
      NodeDef def;
      def.set_op("Bitcast");
      def.set_device(DEVICE_CPU);
    
      AttrValue typeAttr;
      SetAttrValue(input_tensor->dtype(), &typeAttr);
    
      AttrValue outTypeAttr;
      SetAttrValue(out_type, &outTypeAttr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/compilability_check_util.cc

                                     NodeDef* node_def) {
      const NameAttrList* name_attr;
      TF_RETURN_IF_ERROR(GetNodeAttr(node.attrs(), attr_name, &name_attr));
      node_def->set_op(name_attr->name());
      *(node_def->mutable_attr()) = name_attr->attr();
      return absl::OkStatus();
    }
    
    absl::StatusOr<std::vector<NodeDef>> MakeCallNodesFromAttribute(
        const Node& node, absl::string_view attr_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_kernel_creator.h

    #include "tensorflow/core/framework/node_def.pb.h"
    #include "tensorflow/core/framework/node_properties.h"
    #include "tensorflow/core/lib/core/status.h"
    
    namespace tensorflow {
    
    class FunctionLibraryRuntime;
    class OpKernel;
    
    class XlaKernelCreator : public CustomKernelCreator {
     public:
      // Given a NodeDef 'node_def' and the function library runtime 'flr', returns
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 26 19:43:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/c/c_test_util.h

    bool IsPlaceholder(const tensorflow::NodeDef& node_def);
    
    bool IsScalarConst(const tensorflow::NodeDef& node_def, int v);
    
    bool IsAddN(const tensorflow::NodeDef& node_def, int n);
    
    bool IsNeg(const tensorflow::NodeDef& node_def, const string& input);
    
    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def);
    
    bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 09 01:06:53 UTC 2018
    - 6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.h

    // ShapedType for the leading values with ShapedType in the results of the
    // nodes. Set it to true if the returned NodeDef will be executed by the linked
    // TF Eager runtime.
    absl::StatusOr<std::unique_ptr<NodeDef>> ConvertTFDialectOpToNodeDef(
        mlir::Operation* inst, llvm::StringRef name,
        bool ignore_unregistered_attrs);
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

        if (stateless && stateless.getValue())
          *node_def->mutable_op() = "Stateless" + node_def->op();
      }
    
      // Add inputs to the NodeDef based on the number of operands. This is required
      // as later when edges are added to the Node using Graph::AddEdge the
      // associated NodeDef is not updated.
      for (int i = 0, e = inst->getNumOperands(); i < e; ++i) {
        node_def->add_input();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top