Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 181 for SmallVector (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc

            return !attr || !mlir::isa<ElementsAttr>(attr);
          }))
        return failure();
    
      SmallVector<ElementsAttr, 4> inputs;
      inputs.reserve(operands.size());
      for (auto input : operands) {
        inputs.push_back(mlir::cast<ElementsAttr>(input));
      }
    
      SmallVector<Attribute> constants;
      LogicalResult status = EvaluateOperation(inst, inputs, constants);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc

        }
    
        // Splits into lines.
        SmallVector<StringRef, 8> lines;
        file->getBuffer().split(lines, "\n", -1, false);
        // The resize method is used since split operator puts tail value in the end
        // without splitting the leftovers.
        if (op.getVocabSize() != -1) lines.resize(op.getVocabSize());
    
        // Map each line to line number, starting from zero.
        SmallVector<int64_t, 8> line_nums;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/device_util.h"
    
    #include <memory>
    #include <string>
    #include <tuple>
    #include <utility>
    
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

    #include "tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h"
    
    #include <string>
    #include <vector>
    
    #include "absl/strings/str_cat.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/MemoryBuffer.h"
    #include "llvm/Support/SMLoc.h"
    #include "llvm/Support/SourceMgr.h"
    #include "mlir/Dialect/Arith/IR/Arith.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

    #include <memory>
    #include <string>
    #include <utility>
    
    #include "absl/status/status.h"
    #include "absl/strings/string_view.h"
    #include "llvm/ADT/DenseMap.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

    }
    
    FailureOr<Attribute> GetTPUInfeedLayout(const ArrayRef<Type> types,
                                            OpBuilder &rewriter) {
      auto i64_type = rewriter.getIntegerType(64);
      if (types.size() > 1) {
        llvm::SmallVector<mlir::Attribute> v;
        v.reserve(types.size());
        for (const mlir::Type &t : types) {
          if (mlir::isa<mhlo::TokenType>(t)) continue;
          auto layout = GetTPUInfeedLayout({t}, rewriter);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/parallel_execute_util.cc

      if (parallel_execute.getRegions().size() == 1) {
        builder->setInsertionPoint(parallel_execute);
        auto& block = parallel_execute.GetRegionBlockWithIndex(0);
        llvm::SmallVector<Operation*, 2> ops_move;
        for (Operation& op : block) {
          ops_move.push_back(&op);
        }
        if (ops_move.size() != 2) {
          parallel_execute.emitError() << "Expected 2 ops in parallel_execute.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.cc

    // tensor.
    DenseFPElementsAttr GetCorrectionMatrix(Builder& builder, CompositeOp op) {
      const TorchAvgPoolData pool = GetTorchAvgPoolData(op);
    
      llvm::SmallVector<int64_t, 4> nhwc_out_shape(4);
      nhwc_out_shape[0] = 1;  // Broadcast batch.
      nhwc_out_shape[1] = pool.h_out;
      nhwc_out_shape[2] = pool.w_out;
      nhwc_out_shape[3] = 1;  // Broadcast channels.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

    // in `tensorflow/compiler/mlir/tensorflow/translate/import_model.cc`.
    void FindQuantizationUnitsRecursively(Location loc,
                                          SmallVector<QuantizationUnit>& units) {
      if (!isa<FusedLoc>(loc)) return;
    
      auto set_node_and_func_name = [](QuantizationUnit& new_unit,
                                       StringRef name_loc_id) {
        if (name_loc_id.contains("@")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/Support/Casting.h"
    #include "llvm/Support/Debug.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 04:14:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top