Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 986 for Auto (0.04 sec)

  1. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      }
      std::string tfr_raw_text;
      for (const auto& file : files) {
        string fullpath = io::JoinPath(composite_mlir_dir, file);
        if (env->MatchPath(fullpath, io::JoinPath(composite_mlir_dir, "*.mlir"))) {
          std::string text;
          TF_RETURN_IF_ERROR(ReadFileToString(env, fullpath, &text));
          tfr_raw_text.append(text);
        }
      }
    
      auto ctx = TFRDecomposeContext::GetFromText(tfr_raw_text, mlir_ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/eval_util.cc

        return mlir::failure();
      }
    
      TF_Status* status = TF_NewStatus();
      auto clean_status = MakeCleanup([status] { TF_DeleteStatus(status); });
    
      // Builds TF operation and sets all the attributes.
      std::string node_name = "unnamed";
      if (auto attr = inst->getAttrOfType<mlir::StringAttr>("name")) {
        node_name = std::string(attr.getValue());
      }
      auto node_def_or = ConvertTFDialectOpToNodeDef(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 13 06:02:14 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc

      const auto metadata_iter =
          replicated_input->getBlock()->getOps<TF::TPUReplicateMetadataOp>();
      TF::TPUReplicateMetadataOp metadata;
      if (!metadata_iter.empty()) metadata = *(metadata_iter.begin());
    
      auto first_partitioned_input = llvm::cast<TF::TPUPartitionedInputV2Op>(
          replicated_input.getOperand(0).getDefiningOp());
      auto partition_dims = first_partitioned_input.getPartitionDims();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 24 23:08:55 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

                                        Region& region) {
      auto parallel_group_attr =
          launch->getAttrOfType<StringAttr>(TF::kParallelExecAnnotation);
      auto result = region.walk([&](Operation* op) -> WalkResult {
        if (op->getDialect() != tf_dialect) return WalkResult::advance();
    
        if (parallel_group_attr) {
          op->setAttr(TF::kParallelExecAnnotation, parallel_group_attr);
        }
        auto device_attr = op->getAttr(kDeviceAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_functional_to_executor.cc

    void FunctionalToExecutorDialectConversion::runOnOperation() {
      auto func = getOperation();
      if (func.isExternal()) return;
      if (!llvm::hasSingleElement(func)) {
        LLVM_DEBUG(llvm::dbgs() << "Expect single block function, skip conversion "
                                   "to tf_executor dialect\n");
        return;
      }
      auto loc = func.getLoc();
      mlir::Block& body = func.front();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/scope_test.cc

    std::vector<string> AnotherCompositeOp(const Scope& scope) {
      auto cop_scopes = scope.GetCompositeOpScopes("another_cop");
      const string c1 = cop_scopes.child.GetUniqueNameForOp("c1");
      const string c2 = cop_scopes.child.GetUniqueNameForOp("mul");
      return {c1, c2, LastOp(cop_scopes.last)};
    }
    
    std::vector<string> LinearOp(const Scope& scope) {
      auto cop_scopes = scope.GetCompositeOpScopes("linear");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 08:17:37 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

      if (seen.contains(v)) {
        return failure();  // infinite loop
      }
      seen.insert(v);
    
      if (auto blockArg = mlir::dyn_cast<BlockArgument>(v)) {
        Operation *op = blockArg.getOwner()->getParentOp();
    
        // If we're in the first block, then the argument to that block is the
        // one we're looking for.
        if (auto func = cast<func::FuncOp>(op)) {
          if (blockArg.getOwner()->isEntryBlock()) {
            *out = blockArg;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

                                const ArrayRef<TF::VarHandleOp> var_handle_ops) {
      auto builder = OpBuilder::atBlockEnd(&save_func.getBody().front());
    
      SmallVector<std::string> tensor_names = {};
      SmallVector<Value> tensor_values = {};
      for (auto var_handle_op : var_handle_ops) {
        tensor_names.emplace_back(var_handle_op.getSharedName().str());
    
        auto read_var_op = builder.create<TF::ReadVariableOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc

    TEST(GetDenseAttrFromTensorProtoAttrTest, Qint8ToUQ8Succeeds) {
      auto context = CreateContext();
      TensorType result_tensor_type = RankedTensorType::get(
          {2, 2}, quant::UniformQuantizedType::get(
                      quant::QuantizationFlags::FlagValue::Signed,
                      IntegerType::get(context.get(), 8),
                      FloatType::getF32(context.get()), 3.0, 2, -128, 127));
    
      auto dense_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/integration/node_expansion_pass.cc

        TF_ASSIGN_OR_RETURN(auto func, ExpandNode(ndef, fname));
        TF_RETURN_IF_ERROR(ctx.AddFunctionDef(func));
      }
    
      // Rewrite the out_op to be the call op. This essentially a deep copy of the
      // orig_op, except the op name.
      auto* new_op = new EagerOperation(&ctx);
      TF_RETURN_IF_ERROR(
          new_op->Reset(fname.c_str(), orig_op->DeviceName().c_str()));
      for (auto input : orig_op->GetInputs()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Feb 25 16:22:36 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top