Skip to content

Commit 710c56a

Browse files
committed
support model convert from fp32 to fp16
1 parent 1b2e6f0 commit 710c56a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

paddle2onnx/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
from .version import version
1615

1716
__version__ = version

paddle2onnx/mapper/mapper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace paddle2onnx {
2424

25-
static const std::unordered_set<int32_t> kNoNeedCastTypes{P2ODataType::INT8, P2ODataType::FP16, P2ODataType::FP32}; // 0: float32, 3: int8, 6: float16
25+
static const std::unordered_set<int32_t> kNoNeedCastTypes{P2ODataType::INT8, P2ODataType::FP16, P2ODataType::FP32};
2626

2727
class Mapper
2828
{

0 commit comments

Comments
 (0)