Commit e055f3cf authored by Vijay Korthikanti's avatar Vijay Korthikanti
Browse files

fix warning condition

parent a1f4032b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ def parse_args(extra_args_provider=None, defaults={},
    custom_kernel_constraint = seq_len > 16 and seq_len <=2048 and \
        seq_len % 4 == 0 and attn_batch_size % 4 == 0

    if args.fp16 and custom_kernel_constraint and args.masked_softmax_fusion:
    if not (args.fp16 and custom_kernel_constraint and args.masked_softmax_fusion):
        print('WARNING: constraints for invoking optimized'
            ' fused softmax kernel are not met. We default back to unfused'
            ' kernel invocations.')