Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CreateFreezeGlobalTensorsPass (0.29 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_passes.h

    std::unique_ptr<OperationPass<ModuleOp>> CreateOptimizeGlobalTensorsPass();
    
    // Creates a pass that freezes tf_saved_model.global_tensor ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeGlobalTensorsPass(
        bool allow_mutable_tensors = false);
    
    // Creates a pass that freezes tf_saved_model.asset ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeAssetsPass(
        std::string saved_model_dir = "");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 09 19:11:34 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

      // freezing of TF v2 GlobalTensor ops. (Ref: b/206855389)
      pm.addPass(mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass());
      pm.addPass(mlir::tf_saved_model::CreateFreezeGlobalTensorsPass(
          /*allow_mutable_tensors=*/true));
    
      // Generic MLIR optimization passes.
      pm.addPass(mlir::createCanonicalizerPass());
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_savedmodel_passes.td

        support resources/variables. Further, this contract also ensures that this
        pass lowers from saved model to pure TF. Hence it fails, if it cannot lower.
      }];
    
      let constructor = "::mlir::tf_saved_model::CreateFreezeGlobalTensorsPass()";
    
      let options = [
        Option<"allow_mutable_tensors", "allow-mutable-tensors", "bool", /*default=*/"false",
               "Allows mutable tensors to be in the graph.">
      ];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 09 19:11:34 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

      // freezing of TF v2 GlobalTensor ops. (Ref: b/206855389)
      pm.addPass(mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass());
      pm.addPass(mlir::tf_saved_model::CreateFreezeGlobalTensorsPass(
          /*allow_mutable_tensors=*/true));
    
      // Generic MLIR optimization passes.
      pm.addPass(mlir::createCanonicalizerPass());
      pm.addPass(mlir::TF::CreateTFShapeInferencePass(input_arg_shapes));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

        module.emitError() << "could not freeze all global tensors in the module";
        return signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeGlobalTensorsPass(
        bool allow_mutable_tensors) {
      return std::make_unique<FreezeGlobalTensorsPass>(allow_mutable_tensors);
    }
    
    }  // namespace tf_saved_model
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

      if (!pass_config.disable_variable_freezing) {
        // This pass 'freezes' immutable global tensors and inlines them as tf
        // constant ops.
        pass_manager->addPass(mlir::tf_saved_model::CreateFreezeGlobalTensorsPass(
            /*allow_mutable_tensors=*/pass_config.enable_tflite_variables));
      }
    
      if (!saved_model_dir.empty()) {
        // This pass 'freezes' tf saved model asset ops and inlines as string values
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top