Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for SavedConcreteFunction (0.29 sec)

  1. tensorflow/c/experimental/saved_model/core/tf_concrete_function_loading_test.cc

        signature->add_output_arg();
      }
      return func;
    }
    
    // A SavedConcreteFunction whose canonicalized input signature
    // has less inputs than its corresponding FunctionDef should cause an error.
    TEST_F(SavedConcreteFunctionLoadingTest, TooFewInputsInSavedConcreteFunction) {
      // `saved` has 1 input
      SavedConcreteFunction saved;
      *saved.mutable_canonicalized_input_signature() =
          testing::SingleArgInputSignature();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function_revival_state.h

      // TensorHandle captures for this funtion
      std::vector<ImmediateExecutionTensorHandle*> captures;
    
      // SavedConcreteFunction contains much of the metadata of the expected "types"
      // of the inputs and outputs of a function.
      // Note(bmzhao): saved_concrete_func_ is guaranteed to be non-null.
      const SavedConcreteFunction* saved_concrete_func;
    
      // This field is only present on TF2 ConcreteFunctions, and is useful for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 23 04:49:47 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/saved_model_utils.h

                          absl::Span<const AssetFileDef> assets,
                          std::unique_ptr<Asset>* output);
    
    // Creates a TFConcreteFunction from a SavedConcreteFunction.
    Status LoadTFConcreteFunction(
        const SavedConcreteFunction& saved_concrete_function,
        const FunctionDef* function_def,
        const std::unordered_map<int, std::unique_ptr<TensorHandleConvertible>>&
            captured_objects,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 04:18:52 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/revived_types/partially_revived_objects.cc

          return absl::FailedPreconditionError(
              absl::StrCat("Resource at node ", node_id,
                           " did not have a create_resource() function"));
        }
        const SavedConcreteFunction* saved_create_resource_fn =
            create_resource_fn->saved_concrete_func;
        if (!saved_create_resource_fn->bound_inputs().empty()) {
          // TODO(b/124045874): Support loading resource functions via a top sort
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 20:11:48 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/revived_types/tf_signature_def_function_revival_state.h

      // non-null.
      const FunctionDef* fdef = nullptr;
    
      // SavedConcreteFunction contains much of the metadata of the expected "types"
      // of the inputs and outputs of a function.
      // Note(bmzhao): saved_concrete_func_ is guaranteed to be non-null.
      const SavedConcreteFunction* saved_concrete_func = nullptr;
    
      // The name of the SignatureDef key.
      std::string signature_key;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 23 04:49:47 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/saved_model_utils.cc

    // output signatures with respect to the corresponding FunctionDef's input
    // and output args.
    Status ValidateSavedFunctionCompatibleWithFunctionDef(
        const SavedConcreteFunction& saved_concrete_function,
        const FunctionDef* function_def) {
      // tf.functions go through many transformations before becoming FunctionDefs
      // 1. flatten user-provided inputs:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 19:17:46 UTC 2023
    - 24K bytes
    - Viewed (0)
  7. tensorflow/cc/experimental/libtf/runtime/runtime.cc

    namespace runtime {
    
    using tensorflow::AbstractContext;
    using tensorflow::AbstractFunctionPtr;
    using tensorflow::DataType;
    using tensorflow::FunctionDef;
    using tensorflow::PartialTensorShape;
    using tensorflow::SavedConcreteFunction;
    using tensorflow::SavedObjectGraph;
    using tensorflow::Status;
    using tensorflow::StructuredValue;
    using tensorflow::TensorSpecProto;
    using tensorflow::libexport::TFPackage;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/fingerprinting.cc

    absl::StatusOr<uint64_t> RegularizeAndHashSavedObjectGraph(
        const SavedObjectGraph& object_graph_def) {
      // Sort `concrete_functions`, which is an unordered map from function names to
      // SavedConcreteFunction, using the suffix UID of the function name. Assumes
      // that the trackable children are listed in a deterministic order during
      // serialization.
      absl::btree_map<int64_t, std::string> uid_to_function_names;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 26 00:24:44 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          // We only allow a single input signature to each SavedFunction.
          // This assumption means we have a 1:1 correspondence between
          // tf.function <=> SavedFunction <=> SavedConcreteFunction <=> FunctionDef
          // This makes defining the ABI easier (or even well-defined at all).
          // TODO(silvasean): How to detect a function that doesn't have an
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top