Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 380 for getLoc (0.14 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

                    value.getType()));
            builder.setInsertionPointAfter(cst.getOperation());
            auto new_op = builder.create<tfl::QConstOp>(
                cst.getLoc(), new_output_type, mlir::TypeAttr::get(new_output_type),
                cst.getValueAttr());
            full_range_const = new_op.getOutput();
          }
          use.set(full_range_const);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

            }
          }
          continue;
        }
    
        if (IsSplitSharding(sharding)) {
          llvm::SmallVector<mlir::Value, 4> tiled_inputs;
          auto result = HandleTileShardedInputs(
              cluster_func.getLoc(), sharding, input_value, builder, &tiled_inputs);
          if (mlir::failed(result)) return mlir::failure();
    
          const int64_t tiled_inputs_size = tiled_inputs.size();
          if (tiled_inputs_size != num_cores_per_replica)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tf_tfl_translate.cc

            terminator = fn.back().getTerminator();
        }
        i = 0;
        for (auto output : *subgraph->outputs()) {
          print_buffer(*subgraph, i, output, [&](int i) {
            return terminator ? terminator->getOperand(i).getLoc() : unknown_loc;
          });
        }
      }
      return kTrSuccess;
    }
    
    int main(int argc, char **argv) {
      // TODO(jpienaar): Revise the command line option parsing here.
      tensorflow::InitMlir y(&argc, &argv);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

          // can't lower tf.Const.
          Value cst;
          if (use_mhlo_const) {
            cst = builder.create<mhlo::ConstantOp>(func_op->getLoc(), attrs);
          } else {
            cst = builder.create<TF::ConstOp>(func_op->getLoc(), attrs);
          }
          func_op.getArgument(i).replaceAllUsesWith(cst);
        }
        return module_op;
      }
    
      // Evaluate return value of a function using TF kernel.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      builder_ = mlir::OpBuilder(function.getBody());
    
      // Create the graph operation in which we will convert the individual nodes.
      auto graph = builder_.create<mlir::tf_executor::GraphOp>(
          function.getLoc(), func_type.getResults());
      builder_.createBlock(&graph.getBody());
    
      for (const Node* node : ordered_nodes_) {
        TF_RETURN_IF_ERROR(ConvertNode(*node));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

    };
    
    // TODO(fengliuai): migrate to use modify_io_nodes pass.
    void RemoveQuantizationAdaptorOps(func::FuncOp func) {
      mlir::OpBuilder builder(func.getBody());
      auto& bb = func.front();
      auto loc = func.getLoc();
    
      int num_args = bb.getNumArguments();
      llvm::SmallVector<Type, 4> input_types;
      input_types.reserve(num_args);
      // Edit the block arguments and create the new input ops in place to replace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc

            if (call.getCallee() != impl.getName()) {
              // We need to rebuild the call op. :(
              builder->setInsertionPoint(call);
              auto new_call = builder->create<func::CallOp>(call.getLoc(), impl,
                                                            call.getOperands());
    
              // Set interface_name & target to the call_op as well.
              new_call->setAttr(kInterfaceNameAttr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 19.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        new_result_types.push_back(result.getType());
      }
    
      // Rebuild the new operation with lesser number of results.
      OpBuilder builder(op);
      Operation *new_op = Operation::create(
          op->getLoc(), op->getName(), new_result_types, op->getOperands(),
          op->getAttrs(), op->getPropertiesStorage(), op->getSuccessors(),
          op->getNumRegions());
      builder.insert(new_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

      if (auto attr = inst->getAttrOfType<mlir::StringAttr>("device")) {
        node_def->set_device(std::string(attr.getValue()));
      }
    
      // Add the node debug info.
      TF_RETURN_IF_ERROR(ConvertLocation(
          inst->getLoc(), name, node_def->mutable_experimental_debug_info()));
    
      return node_def;
    }
    
    Status ConvertAttributes(
        const llvm::ArrayRef<mlir::NamedAttribute> attrs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

        return a->isBeforeInBlock(b);
      });
    
      // Create tf_device::ClusterOp before the last operation in the block that
      // is a part of a match set.
      auto back = cluster.operations.back();
      auto loc = back->getLoc();
      OpBuilder builder(back);
    
      auto cluster_op =
          builder.create<tf_device::ClusterOp>(loc, return_types, policy);
    
      // Create block in cluster_op's region and move 'cluster.operations' into
      // it.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top