Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for node_def (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.cc

              }
            }
          }
        }
      }
    
      // Upgrade nodes in the GraphDef.
      for (auto& node_def : *gdef.mutable_node()) {
        const OpDef* op_def = nullptr;
        TF_RETURN_IF_ERROR(flib_def->LookUpOpDef(node_def.op(), &op_def));
        // TODO(b/197144710): improve the shared_name attr, each op may use the
        // shared_name differently.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 14:33:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

                                           node_def->mutable_attr()));
    
      return node_def;
    }
    
    absl::StatusOr<std::unique_ptr<NodeDef>> Exporter::GetReturnNode(
        FuncOp function, Value operand, unsigned index, llvm::StringRef name) {
      auto node_def = std::make_unique<NodeDef>();
      if (!name.empty())
        node_def->set_name(std::string(ParseTensorName(name.str()).node()));
      else
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

                                           node_def->mutable_attr()));
    
      return node_def;
    }
    
    absl::StatusOr<std::unique_ptr<NodeDef>> Exporter::GetReturnNode(
        FuncOp function, Value operand, unsigned index, llvm::StringRef name) {
      auto node_def = std::make_unique<NodeDef>();
      if (!name.empty())
        node_def->set_name(std::string(ParseTensorName(name.str()).node()));
      else
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

    absl::StatusOr<FunctionDef> TFRDecomposeContext::ExpandNode(
        const NodeDef& node_def, StringPiece func_name) {
      const OpDef* op_def;
      TF_RETURN_IF_ERROR(OpRegistry::Global()->LookUpOpDef(node_def.op(), &op_def));
      DataTypeVector input_dtys, output_dtys;
      TF_RETURN_IF_ERROR(InputTypesForNode(node_def, *op_def, &input_dtys));
      TF_RETURN_IF_ERROR(OutputTypesForNode(node_def, *op_def, &output_dtys));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        op_state.addTypes(op.getResultTypes());
    
        SmallVector<NamedAttribute, 2> attrs;
        std::string parsed_op_name;
        tensorflow::NodeDef node_def;
        if (failed(ParseCustomOption(op.getCustomOption().getValue(), op.getLoc(),
                                     parsed_op_name, attrs, node_def))) {
          return failure();
        }
        if (parsed_op_name != tf_op_name) {
          return op.emitOpError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

    // runtime OpKernel.
    void RemoveIdentityCast(NodeDef* node_def) {
      auto attr = node_def->mutable_attr();
      if (node_def->op() == "Cast" && attr->contains("SrcT") &&
          attr->contains("DstT") &&
          attr->at("SrcT").type() == attr->at("DstT").type() &&
          attr->contains("Truncate") && !attr->at("Truncate").b()) {
        node_def->set_op("Identity");
        attr->insert({{"T", attr->at("SrcT")}});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.cc

      absl::StatusOr<OpKernelRunner> runner = OpKernelRunner::Create(
          node_def->get()->op(), node_def->get()->name(), host_cpu, operands.size(),
          [&](tensorflow::AttrValueMap* attr_value_map) {
            *attr_value_map = node_def->get()->attr();
            return absl::OkStatus();
          },
          fallback_state.device_manager(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

        tf_graph_def = root.signatures['serving_default'].graph.as_graph_def()
        count = 0
        for node_def in tf_graph_def.node:
          if node_def.op == 'XlaCallModule':
            count += 1
        for function in tf_graph_def.library.function:
          for node_def in function.node_def:
            if node_def.op == 'XlaCallModule':
              count += 1
        return count
    
      def _get_function_aliases(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

                      .Input(inputs)
                      .Attr("ids", ids)
                      .Attr("calibration_methods", calibration_methods)
                      .Finalize(node_def()));
      ASSERT_THAT(InitOp(),
                  StatusIs(tsl::error::INVALID_ARGUMENT,
                           HasSubstr("NodeDef missing attr 'output_file_path'")));
    }
    
    TEST_F(CalibrationStatisticsSaverTest, WrongNumInputs) {
      std::vector<std::string> ids{"1"};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top