Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 95 for emitError (0.27 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

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

      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
      for (auto func : module.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError()
              << "quant-lift-quantizable-spots-as-functions-drq failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc

        // island wraps a single op.
        Operation& wrapped_op = island.GetBody().front();
        TF::ParallelExecutionIdPairs id_pairs;
        if (failed(TF::ParseParallelExecutionIds(&wrapped_op, id_pairs))) {
          wrapped_op.emitError()
              << "Malformed " << TF::kParallelExecAnnotation << " attribute";
          return failure();
        }
        if (id_pairs.empty()) continue;
    
        TF::ParallelIdsMap& ids_map = op_to_parallel_ids_map[island];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 07:53:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

        if (exportedNames.empty()) {
          name = "global_ml_" + globalTensor.getSymName().str();
        } else if (exportedNames.size() == 1) {
          name = exportedNames[0].str();
        } else {
          return globalTensor.emitError()
                 << "Multiple exported names for global tensor not supported yet";
        }
        Attribute initial_value;
        if (globalTensor.getValue()) {
          initial_value = *globalTensor.getValue();
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top