Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for VerifyTflRuntimeConstraints (0.21 sec)

  1. tensorflow/compiler/mlir/lite/transforms/runtime_verify.cc

      explicit RuntimeVerifyPass() {}
    
     private:
      void runOnOperation() override;
    };
    
    void RuntimeVerifyPass::runOnOperation() {
      getOperation().walk([&](TflRuntimeVerifyOpInterface op) {
        if (failed(op.VerifyTflRuntimeConstraints(
                op.getOperation(), /*emit_error_on_verify_fail=*/true)))
          signalPassFailure();
      });
    }
    }  // namespace
    
    // Verifies TFL runtime constraints.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_op_interfaces.td

        supported by the TFLite runtime.
      }];
    
      let methods = [
        StaticInterfaceMethod<
          [{Returns whether the op's operands/results are supported by runtime.}],
          "LogicalResult", "VerifyTflRuntimeConstraints",
          (ins "Operation*":$op, "bool":$emit_error_on_verify_fail)
        >,
      ];
    }
    
    //===----------------------------------------------------------------------===//
    // TFL arithmetic count interface.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/converter_gen.cc

        if (!op.getTrait("TflRuntimeVerifyOpInterface::Trait")) continue;
    
        mlir::tblgen::FmtContext verify_ctx;
        os << "::mlir::LogicalResult " << op.getCppClassName()
           << "::VerifyTflRuntimeConstraints(::mlir::Operation *op, bool "
              "emit_error_on_verify_fail) {\n";
        os << "  auto top = cast<" << op.getCppClassName() << ">(op); (void)top;\n";
        verify_ctx.addSubst("_op", "top");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        target.addDynamicallyLegalDialect<TensorFlowLiteDialect>([](Operation* op) {
          auto tfl_op = dyn_cast_or_null<TflRuntimeVerifyOpInterface>(op);
          if (!tfl_op) return false;
          return succeeded(tfl_op.VerifyTflRuntimeConstraints(
              op, /*emit_error_on_verify_fail=*/false));
        });
      } else {
        target.addLegalDialect<TensorFlowLiteDialect>();
      }
    
      RewritePatternSet stage1Patterns(&getContext());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
Back to top