Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF2 (0.03 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      """Test cases regarding the use of QuantizationOptions proto.
    
      Run all tests cases in both the graph mode (default in TF1) and the eager mode
      (default in TF2) to ensure support for when TF2 is disabled.
      """
    
      class SimpleModel(module.Module):
    
        def __init__(self):
          self.filters = np.random.uniform(low=-1.0, high=1.0, size=(4, 3)).astype(
              'f4'
          )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      TF_RETURN_IF_ERROR(importer.ConvertDeferredFunctions());
    
      if (!saved_model->meta_graph_def().has_object_graph_def()) {
        return errors::InvalidArgument(
            "SavedModel does not have an object graph. Please use TF2.");
      }
      auto& object_graph = saved_model->meta_graph_def().object_graph_def();
      ObjectNames object_names(object_graph, exported_names);
    
      // Clean up a couple func's that always seem to be present when importing a
    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