Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for node_def (0.13 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/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)
  3. 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)
  4. tensorflow/compiler/jit/xla_kernel_creator.cc

      return CanCreateXlaKernel(props->node_def) &&
             !XlaOpRegistry::IsCompilationDevice(flr.device()->device_type());
    }
    
    static Status CreateXlaKernel(FunctionLibraryRuntime* flr,
                                  const NodeDef& node_def,
                                  std::unique_ptr<OpKernel>* kernel) {
      if (!CanCreateXlaKernel(node_def)) {
        return errors::Internal("Invalid node: ", node_def.ShortDebugString());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 22:24:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. 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)
  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/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)
  8. tensorflow/compiler/mlir/tensorflow/utils/eval_util.cc

      }
      auto node_def_or = ConvertTFDialectOpToNodeDef(
          inst, node_name.c_str(), /*ignore_unregistered_attrs=*/true);
      RETURN_FAILURE_IF_ERROR(node_def_or.status());
      const auto& node_def = node_def_or.value();
    
      TFE_Op* op = TFE_NewOp(context, node_def->op().c_str(), status);
      RETURN_FAILURE_IF_ERROR(status);
      auto clean_op = MakeCleanup([op] { TFE_DeleteOp(op); });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 13 06:02:14 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_compile_util.h

      kUncompiled,
      kCompiling,
      kCompiled,
    };
    
    // Creates a single-node graph using the specified `node_def` as the only op
    // apart from the arg and retval nodes corresponding to `args` and
    // `result_types` respectively.
    absl::StatusOr<std::unique_ptr<Graph>> CreateSingleOpGraph(
        const NodeDef& node_def, absl::Span<const XlaArgument> args,
        absl::Span<const DataType> result_types);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-library.pbtxt

      op: "bar"
      experimental_debug_info {
      }
    }
    library {
      function {
        signature {
          name: "bar"
        }
      }
      function {
        signature {
          name: "foo"
        }
        node_def {
          name: "unnamed"
          op: "bar"
          experimental_debug_info {
            original_node_names: "unnamed"
          }
        }
      }
    }
    versions {
      producer: 29
      min_consumer: 12
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top