Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 87 for SmallVector (0.14 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

        }
        if (isa<mlir::stablehlo::BitcastConvertOp>(op)) {
          // Skip `BitcastConvertOp`, which is handled by the other pattern.
          return failure();
        }
    
        // Update the results.
        SmallVector<Type, 4> new_results;
        if (failed(getTypeConverter()->convertTypes(op->getResultTypes(),
                                                    new_results)))
          return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc

              return WalkResult::interrupt();
            }).wasInterrupted()) {
        fn.emitOpError("Can't have control ops in this pass.");
        signalPassFailure();
      }
    
      llvm::SmallVector<Operation *, 4> ops_with_side_effects;
    
      // We're iterating over all operations at the top block level, excluding
      // the return operation (which otherwise would be recognized as being
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

      auto attrs = attr_.getAttrs();
      TfLitePoolParams pool_params;
    
      llvm::SmallVector<int32_t, 2> pool_size;
      if (failed(GetIntegerArraySafe(&func_, attrs, "pool_size", &pool_size, 2))) {
        return failure();
      }
      pool_params.filter_height = pool_size[0];
      pool_params.filter_width = pool_size[1];
    
      // Retrieve strides.
      llvm::SmallVector<int32_t, 2> strides;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

    // Converts `called_func` attributes in custom call ops back to `called_index`.
    FailureOr<ArrayAttr> DesymbolizeCustomCallCalledIndex(ModuleOp module) {
      Builder builder(module.getContext());
    
      SmallVector<Attribute> function_list;
      llvm::DenseMap<SymbolRefAttr, int> called_indexes;
    
      WalkResult result = module.walk([&](stablehlo::CustomCallOp op) {
        if (!IsTfFuncCustomCall(op)) {
          return WalkResult::advance();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

                                               callee.getResultTypes()));
    }
    
    void RewriteCall(tf_device::ClusterFuncOp cluster_func_op, SymbolTable &symtab,
                     OpBuilder &builder) {
      llvm::SmallVector<Value> non_resource_args, resource_args;
      bool has_resources = false, in_order = true;
      for (const Value &arg : cluster_func_op.getOperands()) {
        if (!mlir::isa<TF::ResourceType>(getElementTypeOrSelf(arg.getType()))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc

      // quantization dim is 3, so we can cache all the converters.
      ShapedType type = attr.getType();
      std::size_t dim_size = type.getDimSize(quantization_dim_);
      if (dim_size != scales_.size()) {
        return {};
      }
      SmallVector<UniformQuantizedValueConverter, 4> converters;
      converters.reserve(dim_size);
      for (int i = 0, e = dim_size; i != e; ++i) {
        converters.push_back(getPerChunkConverter(i));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/sparsity/sparsify_model.cc

    #include "absl/log/log.h"
    #include "absl/status/status.h"
    #include "absl/strings/str_cat.h"
    #include "absl/strings/string_view.h"
    #include "flatbuffers/flatbuffer_builder.h"  // from @flatbuffers
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/Location.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:16:40 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

    limitations under the License.
    ==============================================================================*/
    
    #include "llvm/ADT/SetVector.h"
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Block.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/BuiltinTypes.h"  // from @llvm-project
    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "mlir/Pass/PassRegistry.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc

        // The TPUPartitionedCall has a TPUOrdinalSelectorOp for its last argument
        // which should be removed. So the replaced PartitionedCall op should keep
        // its original arguments except for the last element.
        SmallVector<Value> args = call_op.getOperands().drop_back();
    
        rewriter.replaceOpWithNewOp<TF::PartitionedCallOp>(
            call_op, float_func.getResultTypes(), args, f_attr);
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top