Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SavedVariable (0.21 sec)

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

    };
    
    // Sanity check that constructing a tensorflow::Variable from a SavedVariable
    // 1. does not cause an error
    // 2. preserves dtype and shape.
    TEST_P(SavedVariableLoadingTest, LoadSavedVariableSuccessful) {
      auto& test_params = GetParam();
      DataType dtype = std::get<0>(test_params);
      TensorShape shape(std::get<1>(test_params));
    
      SavedVariable saved_variable;
      saved_variable.set_dtype(dtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/saved_model_utils.h

    // Creates a tensorflow::Variable from a SavedVariable. This is similar to the
    // logic in:
    // https://github.com/tensorflow/tensorflow/blob/516608035f85cec8b126712b0ff8407220206b22/tensorflow/python/saved_model/load.py#L407
    // Note that the caller **must assign a value** to the loaded variable.
    Status LoadSavedVariable(ImmediateExecutionContext* ctx,
                             const SavedVariable& variable,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 04:18:52 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/saved_model_utils.cc

    // https://github.com/tensorflow/tensorflow/blob/516608035f85cec8b126712b0ff8407220206b22/tensorflow/python/saved_model/load.py#L407
    Status LoadSavedVariable(ImmediateExecutionContext* ctx,
                             const SavedVariable& variable,
                             std::unique_ptr<Variable>* output) {
      const std::string& name = variable.name();
      tensorflow::TensorShape shape(variable.shape());
      tensorflow::DataType dtype = variable.dtype();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 19:17:46 UTC 2023
    - 24K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

            func.setResultAttr(index_path.index(), kTfSavedModelIndexPathAttr,
                               index_path.value());
          }
        } else if (object.kind_case() == SavedObject::kVariable) {
          const SavedVariable& variable = object.variable();
          // Find the trackable in the side data structure.
          auto variable_trackable_it = restored_objects.find(node_id);
    
          TF_ASSIGN_OR_RETURN(
    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