Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AssetFileDef (0.69 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/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)
Back to top