Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetLayoutDependentResults (0.23 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h

      // Update types for all layout sensitive results.
      auto layout_sensitive = cast<LayoutSensitiveInterface>(op->getOperation());
      for (unsigned idx : layout_sensitive.GetLayoutDependentResults()) {
        OpResult result = op->getOperation()->getResult(idx);
        result.setType(ShuffleRankedTensorType(result.getType(), perm));
      }
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.td

          "SmallVector<unsigned, 4>", "GetLayoutDependentArgs", (ins)
        >,
        InterfaceMethod<
          [{Returns indices of layout dependent results.}],
          "SmallVector<unsigned, 4>", "GetLayoutDependentResults", (ins)
        >,
        InterfaceMethod<
          [{Returns the optimal data layout based on the available devices.}],
          "StringRef", "GetOptimalLayout", (ins "const RuntimeDevices&":$devices)
        >,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 30 19:07:07 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_verifiers.cc

        return op->emitOpError("layout dependent argument index is out of bound");
      }
    
      auto valid_result = [&](int64_t idx) { return idx < op->getNumResults(); };
      if (!llvm::all_of(interface.GetLayoutDependentResults(), valid_result)) {
        return op->emitOpError("layout dependent result index is out of bound");
      }
    
      return success();
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 25 01:54:09 UTC 2020
    - 2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

        builder.setInsertionPointAfter(op);
        auto res_perm = builder.create<ConstOp>(loc, perm_attr(res_permutation));
    
        for (int64_t res : layout_sensitive_interface.GetLayoutDependentResults()) {
          OpResult result = op->getResult(res);
    
          auto transposed_res = builder.create<TransposeOp>(loc, result, res_perm);
          result.replaceAllUsesWith(transposed_res);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      let extraClassDeclaration = [{
        // TF_LayoutSensitiveInterface:
        SmallVector<unsigned, 4> GetLayoutDependentArgs() { return {0}; }
        SmallVector<unsigned, 4> GetLayoutDependentResults() { return {0}; }
        StringRef GetOptimalLayout(const RuntimeDevices& devices);
        LogicalResult UpdateDataFormat(StringRef data_format);
      }];
    
      let hasVerifier = 1;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top