Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 216 for emitError (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc

        return std::nullopt;  // `call_op` is not a quantized function call.
      }
    
      absl::StatusOr<Method> method = GetQuantizationMethod(call_op);
      if (!method.ok()) {
        call_op->emitError() << "Failed to get quantization method: "
                             << method.status().ToString();
        return std::nullopt;
      }
    
      QuantizationResult result{};
      result.mutable_quantizable_unit()->set_name(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc

      // module level.
      for (auto func : module_op.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError() << "quant-propagate-quantize-type failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    // Creates an instance of the TensorFlow dialect PropagateQuantizeType pass.
    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/tensorflow/utils/tpu_rewrite_device_util.cc

          fetched_device_coordinates.ok()) {
        device_coordinates = *fetched_device_coordinates;
        return mlir::success();
      } else {
        return cluster.emitError() << "error in fetching tpu device coordinates: "
                                   << fetched_device_coordinates.status().message();
      }
    }
    
    int GetNumCoresPerReplica(mlir::tf_device::ClusterOp cluster) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h

        }
    
        Value input = tf_op.getInputs();
        int quant_dim = -1;
        auto input_type = mlir::cast<ShapedType>(input.getType());
        if (PerAxis) {
          if (!input_type.hasRank()) {
            tf_op.emitError("The input should have known rank for per-channel op.");
            return failure();
          }
          // This is a special case that the quant_dim is the last dimensions.
          quant_dim = input_type.getRank() - 1;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

          << ": " << num_part_ops << " ops delegated out of " << num_all_ops
          << " ops with " << num_partitions_after
          << " partitions (originally: " << num_partitions_before << ")";
      if (!scheduled_everything) {
        emitError(func.getLoc(), func.getName())
            << ": " << num_unscheduled_ops << " operations couldn't be scheduled";
      }
      return scheduled_everything;
    }
    
    class PartitionedTopologicalSortPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_update_embedding_enqueue_op_inputs.cc

                                     &send_gradient_op_map)))
        return signalPassFailure();
    
      if (enqueue_op_map.size() != recv_activation_op_map.size()) {
        func_op.emitError() << "expects the number of embedding enqueue ops to "
                               "match the number of '"
                            << TF::RecvTPUEmbeddingActivationsOp::getOperationName()
                            << "' ops";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc

      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<RewriteNchwConvolutionToNhwc>(&ctx);
    
      if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
        func_op.emitError() << "Failed to run NchwConvolutionToNhwcPass.";
        signalPassFailure();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

      RewritePatternSet patterns(ctx);
      func::FuncOp func = getOperation();
    
      patterns.add<AddQuantizationUnitLoc>(ctx);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError() << "quant-add-quantization-unit-loc pattern "
                            "conversion did not converge.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

      // Handle only static shape cases.
      // TODO(b/260284866): Handle dynamic shape cases.
      if (!lhs_shape.hasStaticShape()) {
        return op.emitError("lhs must have static shape.");
      }
      if (!rhs_shape.hasStaticShape()) {
        return op.emitError("rhs must have static shape.");
      }
    
      const int64_t padding_nums_size = 2 * (rhs_shape.getRank() - 2);
      padding_nums.reserve(padding_nums_size);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

      tf_executor::GraphOp graph_op;
    
      if (llvm::hasSingleElement(graph_op_range))
        graph_op = dyn_cast<tf_executor::GraphOp>(func.front().front());
    
      if (!graph_op) {
        func.emitError("expected function to contain only a graph_op");
        signalPassFailure();
        return;
      }
    
      // New control inputs to be added. For an operation x, new_control_inputs[x]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
Back to top