Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for AssetFileDef (0.92 sec)

  1. tensorflow/cc/saved_model/loader_util.cc

        return absl::OkStatus();
      }
      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_test.cc

            return
          }
        }
      )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"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

      if (filename.find("assets/") == 0) {
        return filename.drop_front(7);
      } 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{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/cc/saved_model/loader_util.h

    Status GetInitOp(const string& export_dir, const MetaGraphDef& meta_graph_def,
                     string* init_op_name);
    
    Status GetAssetFileDefs(const MetaGraphDef& meta_graph_def,
                            std::vector<AssetFileDef>* asset_file_defs);
    
    }  // namespace internal
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 12 20:05:11 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

    using ::stablehlo::quantization::io::CreateTmpDir;
    using ::stablehlo::quantization::io::GetLocalTmpFileName;
    using ::stablehlo::quantization::io::ListDirectory;
    using ::tensorflow::AssetFileDef;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::calibrator::CalibrationStatistics;
    using ::tensorflow::quantization::ExportedModel;
    using ::tensorflow::quantization::PyFunctionLibrary;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. 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