Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DumpTensorOp (0.26 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/debugging/dump_tensor_op.cc

        .Attr("file_name: string")
        .Attr("T: type")
        .Attr("enabled: bool")
        .Attr("func_name: string")
        .Attr("node_name: string")
        .SetIsStateful();
    
    class DumpTensorOp : public OpKernel {
     public:
      explicit DumpTensorOp(OpKernelConstruction* ctx) : OpKernel(ctx) {
        string log_dir_path;
        string file_name;
        string func_name;
        string node_name;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 03:12:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

            tensorflow::io::JoinPath(log_dir_path_, f_attr.getValue());
    
        // Attach DumpTensorOp to its output layer.
        SmallVector<NamedAttribute> dump_attributes =
            CreateDumpAttributes(rewriter, folder_name, file_name,
                                 /*enabled=*/true, func_name, node_name);
        rewriter.create<TF::DumpTensorOp>(op->getLoc(), TypeRange{}, result,
                                          dump_attributes);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/debugger.cc

    namespace stablehlo::quantization {
    
    void DisableDebugging(mlir::ModuleOp module_op) {
      module_op.walk(
          [](mlir::TF::DumpTensorOp dump_op) { dump_op.setEnabled(false); });
    }
    
    void ChangeToQuantizedFilename(mlir::ModuleOp module_op) {
      module_op.walk([](mlir::TF::DumpTensorOp dump_op) {
        dump_op.setFileName("quantized_tensor_data.pb");
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 00:17:12 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto

      repeated QuantizationSpec specs = 1;
    }
    
    // Configuration for quantization debugger.
    // The debugging model assumes it should be run on CPU based server, since the
    // model contains TF::DumpTensorOp.
    // NEXT ID: 4
    message DebuggerConfig {
      // Type of quantization debugger. Depending on the type, inputs and outputs
      // are wired differently.
      // NEXT ID: 4
      enum DebuggerType {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

          meta_graph = saved_model_loader.load(sess, tags, export_dir=model_dir)
          signature_def = meta_graph.signature_def[signature_key]
    
          # DumpTensorOp only works in graph mode.
          # Execute the model using session to run DumpTensorOp.
          output_tensor_names = [
              output_tensor_info.name
              for output_tensor_info in signature_def.outputs.values()
          ]
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
Back to top