Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for asset_file_def (0.2 sec)

  1. tensorflow/cc/saved_model/loader_util.cc

      }
      const auto& any_assets = assets_it->second.any_list().value();
      for (const auto& any_asset : any_assets) {
        AssetFileDef asset_file_def;
        TF_RETURN_IF_ERROR(
            ParseAny(any_asset, &asset_file_def, "tensorflow.AssetFileDef"));
        asset_file_defs->push_back(asset_file_def);
      }
      return absl::OkStatus();
    }
    
    }  // namespace internal
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 10 10:25:28 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

      } else {
        return filename;
      }
    }
    
    AssetFileDef CreateAssetFileDef(const StringRef filename,
                                    const StringRef tensor_name) {
      AssetFileDef asset_file_def{};
      asset_file_def.set_filename(MaybeStripAssetDirectoryPrefix(filename).str());
    
      tensorflow::TensorInfo tensor_info{};
      tensor_info.set_name(tensor_name.str());
      *asset_file_def.mutable_tensor_info() = tensor_info;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc

          }
        }
      )mlir");
    
      FailureOr<SmallVector<AssetFileDef>> asset_file_defs =
          ConvertAssetArgs(*module_op);
    
      EXPECT_TRUE(succeeded(asset_file_defs));
      EXPECT_THAT(*asset_file_defs, SizeIs(1));
    
      const AssetFileDef& asset_file_def = *asset_file_defs->begin();
      EXPECT_THAT(asset_file_def.filename(), Eq("file_0.txt"));
      EXPECT_THAT(asset_file_def.tensor_info().name(), Eq("arg_0:0"));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.h

        const absl::flat_hash_map<std::string, std::string>& function_aliases,
        const std::vector<tensorflow::AssetFileDef>& asset_file_defs);
    
    // Sets up and runs the passes for exporting `module_op`. The behavior of the
    // exporting passes is controlled by `export_opts`. Returns `AssetFileDef`s that
    // associate the input arguments of @main and the asset file names. Asset file
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

      TF_ASSIGN_OR_RETURN(const SmallVector<AssetFileDef> asset_file_defs,
                          RunExportPasses(export_opts, *ctx_, *cloned_module_ref));
    
      TF_ASSIGN_OR_RETURN(ExportedModel exported_model,
                          ConvertMlirModuleToExportedModel(
                              *cloned_module_ref, checkpoint_dir, function_aliases_,
                              {asset_file_defs.begin(), asset_file_defs.end()}));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/exported_model.proto

      // Holds information about the asset files used for the model. It essentially
      // associates asset file names with the tensors to which the asset file names
      // should be fed.
      repeated AssetFileDef asset_file_defs = 8;
    
      // SaverDef including the information required for saving and restoring
      // variables. This field is not set if there are no variables in the exported
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 06:12:59 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.h

    //   "tf_saved_model.index_path", if the bound input is attached to the
    //   `tf_saved_model::AssetOp`.
    // * Strips the "assets/" prefix of the filename when setting it to
    //   `AssetFileDef`.
    FailureOr<SmallVector<tensorflow::AssetFileDef>> ConvertAssetArgs(
        ModuleOp module_op);
    
    }  // namespace mlir::quant
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 01:45:41 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/saved_model_utils.h

    Status LoadSavedAsset(ImmediateExecutionContext* ctx, const SavedAsset& asset,
                          const std::string& saved_model_dir,
                          absl::Span<const AssetFileDef> assets,
                          std::unique_ptr<Asset>* output);
    
    // Creates a TFConcreteFunction from a SavedConcreteFunction.
    Status LoadTFConcreteFunction(
        const SavedConcreteFunction& saved_concrete_function,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 04:18:52 UTC 2022
    - 5.7K bytes
    - Viewed (0)
Back to top