Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetArithmeticCountForConvAndFullyconnectedOp (0.4 sec)

  1. tensorflow/compiler/mlir/lite/utils/arithmetic_count_util.h

        }
        *count = total_count;
        return true;
      }
    
      // For conv2d/depthwise_conv/fully_connected ops.
      // This algorithm actually comes from TOCO tooling_util.cc
      static bool GetArithmeticCountForConvAndFullyconnectedOp(mlir::Operation* op,
                                                               int64_t* count) {
        auto weight = op->getOperand(1);
        auto weight_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc

    class CpuConvOp : public TargetHardwareOperation {
      double GetOpCost(mlir::Operation* op) const override {
        float cost = 0.0;
        int64_t arithmetic_count;
        if (ArithmeticCountUtilHelper::GetArithmeticCountForConvAndFullyconnectedOp(
                op, &arithmetic_count)) {
          cost = arithmetic_count * kCPUArithmeticUnitCost;
        } else {
          cost = kCPUDefaultFixedValuedCost;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.cc

    class GpuConvOp : public TargetHardwareOperation {
      double GetOpCost(mlir::Operation* op) const override {
        int64_t arithmetic_count;
        if (ArithmeticCountUtilHelper::GetArithmeticCountForConvAndFullyconnectedOp(
                op, &arithmetic_count)) {
          return arithmetic_count * kGPUArithmeticUnitCost;
        }
        return kGPUDefaultFixedValuedCost;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      results.add<RemoveOptionalZeroBias<FullyConnectedOp>>(context);
    }
    
    int64_t FullyConnectedOp::GetArithmeticCount(Operation* op) {
      int64_t count;
      if (ArithmeticCountUtilHelper::GetArithmeticCountForConvAndFullyconnectedOp(
              op, &count))
        return count;
    
      return -1;
    }
    
    //===----------------------------------------------------------------------===//
    // Conv2DOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top