Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getFuncOp (0.13 sec)

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

            loc, cluster_func.getResultTypes(), operands, cluster_func->getAttrs());
        cluster_func.replaceAllUsesWith(new_cluster_func);
        func::FuncOp func = cluster_func.getFuncOp();
        Block& block = func.front();
        for (Value read_operand : read_operands)
          block.addArgument(read_operand.getType(), loc);
    
        func.setType(FunctionType::get(&getContext(), block.getArgumentTypes(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

        // Populate set_is_same_data_across_replicas
        // Note: this information is duplicated and can be removed from the proto
        // and here once MLIR bridge phase 2 doesn't fallback to the old bridge.
        auto attr = op.getFuncOp().getArgAttrOfType<mlir::BoolAttr>(
            index, replication_attr_name);
        arg->set_is_same_data_across_replicas(attr != nullptr && attr.getValue());
    
        // Currently only support first dimension to be bounded dynamic.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

        MutableOperandRange getArgOperandsMutable() {
          return getArgsMutable();
        }
        // returns the function that this operation will launch.
        func::FuncOp getFuncOp() {
          return SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(*this, getFuncAttr());
        }
        CallInterfaceCallable getCallableForCallee() {
          return getFuncAttr();
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      if (!func_result.wasInterrupted() || !cluster_func.has_value()) {
        return;
      }
    
      // Get the function on device.
      auto device_func = cluster_func->getFuncOp();
      if (!device_func) return;
    
      TF::Conv2DOp first_conv;
      // A map maps block argument id to the convolutions consumes them.
      llvm::SmallDenseMap<unsigned, std::vector<Conv2DWithBlockSize>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top