- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for pushBack (0.27 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
llvm::SmallVector<ParsedDevice, 8> matching_devices; for (const auto& device : devices) if (DeviceNameUtils::IsCompleteSpecification(spec, device)) matching_devices.push_back(device); return matching_devices; } // Create error message for a conflicting attribute of a device. template <typename T> absl::Status MismatchedTPUSystemAttributeErr(absl::string_view attribute, T a,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
// reduction sent to each replica is over all replicas. uint32_t num_replicas = replicate.getN(); llvm::SmallVector<int32_t, 4> group_assignment_val; for (int i = 0; i < num_replicas; ++i) group_assignment_val.push_back(i); Value group_assignment = builder.create<ConstOp>( block_arg.getLoc(), DenseIntElementsAttr::get( RankedTensorType::get({1, num_replicas}, builder.getIntegerType(32)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
std::vector<Type> argument_types; for (auto arg : f.getBody().front().getArguments()) { argument_types.push_back(arg.getType()); } std::vector<Type> return_types; for (auto ret_op : ret->getOperands()) { return_types.push_back(ret_op.getType()); } auto newType = FunctionType::get(rewriter.getContext(), argument_types, return_types);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc
for (const auto& pass_registration : registry_->passes()) { MlirOptimizationPassState pass_state = pass_registration.pass->GetPassState( &device_set, config_proto, **graph, *flib_def); per_pass_state.push_back(pass_state); switch (pass_state) { case MlirOptimizationPassState::FallbackEnabled: { if (overall_state != MlirOptimizationPassState::Enabled)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 18.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc
// different between float and quantized tensors. So do those tests // separately in the test body without checking them here. used_tensors.push_back(i); return float_tensor; } else { // Otherwise, do additional checks for data type and buffer contents. const std::vector<uint8_t> quantized_buffer =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 32.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/converter_python_api.cc
mlir::TFL::ErrorCollector* collector = mlir::TFL::ErrorCollector::GetErrorCollector(); std::vector<std::string> collected_errors; for (const auto& error_data : collector->CollectedErrors()) { collected_errors.push_back(error_data.SerializeAsString()); } collector->Clear(); return collected_errors; } std::string FlatBufferFileToMlir(const std::string& model, bool input_is_filepath) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 19.2K bytes - Viewed (0)