Searched refs:device_specs (Results 1 – 13 of 13) sorted by relevance
/aosp_15_r20/external/tensorflow/tensorflow/dtensor/python/ |
H A D | mesh_util.py | 94 device_specs, device_type = _make_device_specs(devices, device_type) 97 device_specs = [local_spec.make_merged_spec(d) for d in device_specs] 100 mesh_dims = [('x', len(device_specs))] 103 mesh_dims[0] = (mesh_dims[0][0], len(device_specs)) 108 if np.prod(shape) != len(device_specs): 112 global_device_ids = np.arange(len(device_specs)).reshape(shape) 118 local_devices=device_specs, 121 num_global_devices=len(device_specs), 169 device_specs, device_type = _make_device_specs(local_devices, device_type) 182 device_specs = [local_spec.make_merged_spec(d) for d in device_specs] [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/transforms/ |
H A D | target_annotation.cc | 53 explicit TargetAnnotationPass(llvm::ArrayRef<std::string> device_specs) in TargetAnnotationPass() argument 55 device_specs_flag_ = device_specs; in TargetAnnotationPass() 64 llvm::ArrayRef<std::string> device_specs, 83 Operation* op, llvm::ArrayRef<std::string> device_specs, in SetTargetAnnotation() argument 92 for (const auto& device : device_specs) { in SetTargetAnnotation() 141 llvm::ArrayRef<std::string> device_specs) { in CreateTargetAnnotationPass() argument 142 return std::make_unique<TargetAnnotationPass>(device_specs); in CreateTargetAnnotationPass()
|
H A D | get_alternative_subgraph.cc | 108 explicit AlternativeSubgraphPass(llvm::ArrayRef<std::string> device_specs) { in AlternativeSubgraphPass() argument 109 device_specs_flag_ = device_specs; in AlternativeSubgraphPass() 281 std::vector<std::string> device_specs; in runOnOperation() local 282 if (!ProcessTargetDevices(device_specs_flag_, &device_specs)) { in runOnOperation() 299 GetAlternativeGraphForFunc(device_specs, func, module, &builder); in runOnOperation() 306 llvm::ArrayRef<std::string> device_specs) { in CreateAlternativeSubgraphPass() argument 307 return std::make_unique<AlternativeSubgraphPass>(device_specs); in CreateAlternativeSubgraphPass()
|
H A D | passes.h | 34 llvm::ArrayRef<std::string> device_specs); 45 llvm::ArrayRef<std::string> device_specs);
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/hardwares/ |
H A D | target_hardware.cc | 269 std::vector<std::string>* device_specs) { in ProcessTargetDevices() argument 275 device_specs->push_back(device); in ProcessTargetDevices() 278 device_specs->push_back("CPU"); in ProcessTargetDevices() 282 for (const std::string& device : *device_specs) { in ProcessTargetDevices()
|
H A D | target_hardware.h | 189 std::vector<std::string>* device_specs);
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/py_wrapper/ |
H A D | tac_wrapper_pybind11.cc | 28 const std::vector<std::string>& device_specs, in PYBIND11_MODULE() 30 return ::tflite::run_tac(model_file_path, device_specs, in PYBIND11_MODULE()
|
H A D | tac_wrapper.cc | 55 const std::vector<std::string>& device_specs, in run_tac() argument 58 options.hardware_backends = device_specs; in run_tac()
|
H A D | tac_wrapper.h | 37 const std::vector<std::string>& device_specs,
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/ |
H A D | tflite_import_export.cc | 36 llvm::ArrayRef<std::string> device_specs) { in AttachCostPerDevice() argument 38 for (const auto& device_spec : device_specs) { in AttachCostPerDevice()
|
H A D | tac_translate.cc | 90 opt<std::string> device_specs( variable 122 absl::StrSplit(device_specs, ',', absl::SkipEmpty()); in TargetAwareConversionMain()
|
H A D | tac_module.cc | 44 llvm::ArrayRef<std::string> device_specs) { in AddTACPass() argument 50 mlir::TFL::tac::CreateAlternativeSubgraphPass(device_specs)); in AddTACPass()
|
H A D | tac_module.h | 96 llvm::ArrayRef<std::string> device_specs);
|