Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for list_variables (3.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.h"
    
    #include <algorithm>
    #include <iterator>
    #include <string>
    #include <tuple>
    #include <type_traits>
    #include <utility>
    #include <vector>
    
    #include "llvm/ADT/ArrayRef.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.h

    namespace mlir {
    namespace tf_saved_model {
    
    // Creates GlobalTensorOp for each variable from function arguments and converts
    // them to the corresponding saved model arguments.
    LogicalResult LiftVariables(ModuleOp module, ::tensorflow::Session* session);
    
    }  // namespace tf_saved_model
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.cc

    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/fake_session.h"
    
    namespace mlir {
    namespace tf_saved_model {
    namespace {
    using ::tensorflow::Session;
    
    #define GEN_PASS_DEF_LIFTVARIABLESTESTPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        # variables found in the graph.
        checkpoint_path = os.path.join(
            self._output_saved_model_path, 'variables', 'variables'
        )
        var_name_and_shapes = checkpoint_utils.list_variables(checkpoint_path)
    
        # Checks that each variable's name and shape match.
        self.assertEqual(len(variable_node_defs), len(var_name_and_shapes))
        for var_name, shape in var_name_and_shapes:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h

    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.h"
    #include "tensorflow/core/common_runtime/device_mgr.h"
    #include "tensorflow/core/framework/resource_mgr.h"
    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/platform/errors.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 15:49:06 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py

    # after absl and tensorflow have run various initialization steps.
    def do_test(
        create_signature,
        canonicalize=False,
        show_debug_info=False,
        use_lite=False,
        lift_variables=True,
        include_variables_in_initializers=False,
    ):
      """Runs test.
    
      1. Performs absl and tf "main"-like initialization that must run before almost
         anything else.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 20 13:19:26 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/mlir_import_options.h

      bool add_default_attributes = true;
    
      // If set, promote tf.VarHandleOp to resource arguments for all functions.
      bool lift_variables = true;
    
      // Keeps the variables in initializers before lifting variables (when
      // `lift_variables == true`) or newly adding variable initialization patterns
      // in the initializer functions. One might want to set this to `true` because
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 20 13:19:26 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/python/mlir.h

    //
    // Args:
    //   saved_model_path: File path from which to load the SavedModel.
    //   tags: Tags to identify MetaGraphDef that need to be loaded.
    //   lift_variables: Boolean flag that indicates whether to hoist variables
    //                   after loading the SavedModel.
    //
    // Returns:
    //   A string of textual MLIR representing the raw imported SavedModel.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 23:44:01 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/basic_v1_no_variable_lifting.py

              outputs={'r': tensor_info_r},
              method_name='some_function'))
      }, None, None
    
    
    if __name__ == '__main__':
      common_v1.set_tf_options()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/python/mlir.cc

      mlir::func::registerAllExtensions(registry);
      mlir::MLIRContext context(registry);
      tensorflow::MLIRImportOptions import_options;
      import_options.upgrade_legacy = upgrade_legacy;
      import_options.lift_variables = lift_variables;
      import_options.include_variables_in_initializers =
          include_variables_in_initializers;
      auto module_or =
          ConvertSavedModelV1ToMlir(bundle, absl::Span<std::string>(exported_names),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top