Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LoadSavedVariable (0.42 sec)

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

      SavedVariable saved_variable;
      saved_variable.set_dtype(dtype);
      shape.AsProto(saved_variable.mutable_shape());
    
      std::unique_ptr<Variable> var;
      TF_EXPECT_OK(internal::LoadSavedVariable(context(), saved_variable, &var));
      EXPECT_EQ(var->dtype(), dtype);
      EXPECT_EQ(var->shape(), shape);
    }
    
    // Verify that a device specified in the SavedVariable is kept.
    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

    // 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,
                             std::unique_ptr<Variable>* output);
    
    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

    }
    
    // This follows the python variable restoration logic:
    // 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();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 19:17:46 UTC 2023
    - 24K bytes
    - Viewed (0)
Back to top